AddService

IServiceContainer.AddService<TService> method

Adds the specified service to the service container.

public void AddService<TService>(TService service)
    where TService : class, IService
Parameter Description
TService The type of the service.
service The service instance.

See Also