IServiceProviderAccessor Interface

Simple Injector
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

public interface IServiceProviderAccessor

The IServiceProviderAccessor type exposes the following members.

Properties

  NameDescription
Public propertyCurrent
Gets the current IServiceProvider for the current scope or request. This operation will never return null.
Top
See Also

Reference