SimpleInjectorAddOptions Class

Simple Injector
Provides programmatic configuration for the Simple Injector on top of IServiceCollection.
Inheritance Hierarchy

SystemObject
  SimpleInjector.AdvancedApiObject
    SimpleInjector.Integration.ServiceCollectionSimpleInjectorAddOptions

Namespace:  SimpleInjector.Integration.ServiceCollection
Assembly:  SimpleInjector.Integration.ServiceCollection (in SimpleInjector.Integration.ServiceCollection.dll) Version: 4.6.0
Syntax

public sealed class SimpleInjectorAddOptions : ApiObject

The SimpleInjectorAddOptions type exposes the following members.

Properties

  NameDescription
Public propertyContainer
Gets the Container instance used by the application.
Public propertyServiceProviderAccessor
Gets or sets an IServiceProviderAccessor instance that will be used by Simple Injector to resolve cross-wired framework components.
Public propertyServices
Gets the IServiceCollection that contains the collection of framework components.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from ApiObject.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from ApiObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from ApiObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from ApiObject.)
Top
Extension Methods

  NameDescription
Public Extension MethodAddAspNetCore
Adds basic Simple Injector integration for ASP.NET Core and returns a builder object that allow additional integration options to be applied. These basic integrations includes wrapping each web request in an AsyncScopedLifestyle scope and making the nessesary changes that make it possible for enabling the injection of framework components in Simple Injector-constructed components when UseSimpleInjector(IServiceProvider, Container, ActionSimpleInjectorUseOptions) is called.
(Defined by SimpleInjectorAddOptionsAspNetCoreExtensions.)
Public Extension MethodAddHostedServiceTHostedService
Registers the given THostedService in the Container as Singleton and adds it to the host's pipeline of hosted services.
(Defined by SimpleInjectorGenericHostExtensions.)
Top
See Also

Reference