Kernel.GetAllServices<T> Method

Definition

Gets all services of the specified type.

public System.Collections.Generic.IEnumerable<T> GetAllServices<T> () where T : class;
member this.GetAllServices : unit -> seq<'T (requires 'T : null)> (requires 'T : null)
Public Function GetAllServices(Of T As Class) () As IEnumerable(Of T)

Type Parameters

T

Specifies the type of the services to retrieve.

Returns

An enumerable of all instances of the specified service that are registered.

Remarks

There is no guaranteed ordering on the results.

Applies to