Note: This API is now obsolete.
Initializes a new instance of the AspNetRequestLifestyle class.
Namespace: SimpleInjector.Integration.AspNetCore
Assembly: SimpleInjector.Integration.AspNetCore (in SimpleInjector.Integration.AspNetCore.dll) Version: 4.10.3
Syntax
[ObsoleteAttribute("Please use SimpleInjector.Lifestyles.AsyncScopedLifestyle instead. Will be removed in version 5.0.", true)] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public AspNetRequestLifestyle( bool disposeInstanceWhenScopeEnds )
Parameters
- disposeInstanceWhenScopeEnds
- Type: SystemBoolean
Specifies whether the created and cached instance will be disposed when the Web API request ends, and when the created object implements IDisposable.
See Also