SimpleInjectorGenericHostExtensions Class

Simple Injector
Extension methods for integrating Simple Injector with Generic Hosts.
Inheritance Hierarchy

SystemObject
  SimpleInjectorSimpleInjectorGenericHostExtensions

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.GenericHost (in SimpleInjector.Integration.GenericHost.dll) Version: 5.0.0
Syntax

public static class SimpleInjectorGenericHostExtensions

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