IServiceContainer.AddService

IServiceContainer.AddService<TService> method

Adds the specified service to the service container.

public void AddService<TService>(TService service)
    where TService : class, IService
ParameterDescription
TServiceThe type of the service.
serviceThe service instance.

See Also