ServiceLocator.RegisterService<T> Method |
Registers a service.
Namespace: PostSharp.Patterns.Utilities
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static void RegisterService<T>( T service ) where T : class
Parameters
- service
- Type: T
Service implementation.
Type Parameters
- T
- Type of the service interface.