Extension methods for integrating Simple Injector with Generic Hosts.
Inheritance Hierarchy
SimpleInjectorSimpleInjectorGenericHostExtensions
Namespace: SimpleInjector
Assembly: SimpleInjector.Integration.GenericHost (in SimpleInjector.Integration.GenericHost.dll) Version: 5.0.0
Syntax
The SimpleInjectorGenericHostExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | AddHostedServiceTHostedService |
Registers the given THostedService in the Container as Singleton and
adds it to the host's pipeline of hosted services.
|
![]() ![]() | UseSimpleInjector(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.
|
![]() ![]() | UseSimpleInjector(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.
|
See Also