Show / Hide Table of Contents

Method Register

| Improve this Doc View Source

Register<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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest