ServiceLocator Class |
A basic service locator used by PostSharp Patterns to find global services.

Namespace: PostSharp.Patterns.Utilities
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.4.11.0 (6.4.11.0)

C#
public static class ServiceLocator
The ServiceLocator type exposes the following members.

Name | Description | |
---|---|---|
![]() ![]() | GetService<T> |
Gets a service implementation.
|
![]() ![]() | RegisterService<T> |
Registers a service.
|

Name | Description | |
---|---|---|
![]() ![]() | ServiceRegistered |
Event raised when a new service is registered.
|
