SimpleInjectorUseOptions Class

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

SystemObject
  SimpleInjector.AdvancedApiObject
    SimpleInjectorSimpleInjectorUseOptions

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

public class SimpleInjectorUseOptions : ApiObject

The SimpleInjectorUseOptions type exposes the following members.

Properties

  NameDescription
Public propertyApplicationServices
Gets the IServiceProvider that provides access to the framework's singleton services.
Public propertyAutoCrossWireFrameworkComponents
Gets or sets a value indicating whether or not Simple Injector should try to load framework components from the framework's configuration system or not. The default is true.
Public propertyContainer
Gets the application's Simple Injector Container.
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 MethodCrossWire(Type)Overloaded.
Cross wires an ASP.NET Core or third-party service to the container, to allow the service to be injected into components that are built by Simple Injector.
(Defined by SimpleInjectorServiceCollectionExtensions.)
Public Extension MethodCrossWireTServiceOverloaded.
Cross wires an ASP.NET Core or third-party service to the container, to allow the service to be injected into components that are built by Simple Injector.
(Defined by SimpleInjectorServiceCollectionExtensions.)
Public Extension MethodUseLogging
Allows components that are built by Simple Injector to depend on the (non-generic) Microsoft.Extensions.Logging.ILogger abstraction. Components are injected with an contextual implementation. Using this method, application components can simply depend on ILogger instead of its generic counter part, ILogger<T>, which simplifies development.
(Defined by SimpleInjectorServiceCollectionExtensions.)
Public Extension MethodUseMiddlewareTMiddleware
Adds a middleware type to the application's request pipeline. The middleware will be resolved from Simple Injector. The middleware will be added to the container for verification.
(Defined by SimpleInjectorUseOptionsAspNetCoreExtensions.)
Top
See Also

Reference