Allows access to the request's IServiceProvider instance.
This interface is used by Simple Injector and allow it to resolve transient and scoped services from the
framework's IServiceProvider through cross wiring.
Namespace: SimpleInjector.Integration.ServiceCollection
Assembly: SimpleInjector.Integration.ServiceCollection (in SimpleInjector.Integration.ServiceCollection.dll) Version: 5.0.0
Syntax
The IServiceProviderAccessor type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | Current |
Gets the current IServiceProvider for the current scope or request.
This operation will never return null.
|
See Also