ServiceLocator Class |
Namespace: PostSharp.Patterns.Utilities
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
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.
|