SimpleInjectorGenericHostExtensions Methods

Simple Injector

The SimpleInjectorGenericHostExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAddHostedServiceTHostedService
Registers the given THostedService in the Container as Singleton and adds it to the host's pipeline of hosted services.
Public methodStatic memberUseSimpleInjector(IHost, Container)
Finalizes the configuration of Simple Injector on top of IHost. Ensures framework components can be injected into Simple Injector-resolved components, unless AutoCrossWireFrameworkComponents is set to false.
Public methodStatic memberUseSimpleInjector(IHost, Container, ActionSimpleInjectorUseOptions)
Finalizes the configuration of Simple Injector on top of IHost. Ensures framework components can be injected into Simple Injector-resolved components, unless AutoCrossWireFrameworkComponents is set to false using the setupAction.
Top
See Also

Reference