PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility Namespace / IProject­Service­Provider Interface / IProject­Service­Provider Methods / IProject­Service­Provider.​Get­Services(T) Method

IProjectServiceProvider.GetServices<T> Method

Gets the set of implementations a given service interface.

Namespace:  PostSharp.Sdk.Extensibility
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
IEnumerable<T> GetServices<T>()
where T : class, IService

Type Parameters

T
The service interface.

Return Value

Type: IEnumerable<T>
The set of all instances of service T.
See Also