Method Register
| Improve this Doc View SourceRegister<TService, TServiceImpl>()
Registers service by type.
Declaration
public static void Register<TService, TServiceImpl>()
where TService : class, IService where TServiceImpl : TService, new()
Type Parameters
| Name | Description |
|---|---|
| TService | Type of service. |
| TServiceImpl | Type of service implementation. |
Register<TService, TServiceImpl>(Func<TServiceImpl>)
Registers service by type.
Declaration
public static void Register<TService, TServiceImpl>(Func<TServiceImpl> createService)
where TService : class, IService where TServiceImpl : TService
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<TServiceImpl> | createService | Delegate to create service implementation. |
Type Parameters
| Name | Description |
|---|---|
| TService | Type of service. |
| TServiceImpl | Type of service implementation. |