ServiceLocator.RegisterService<T> Method |
Registers a service.
Namespace: PostSharp.Patterns.Utilities
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.14.0 (6.10.14.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.