WebRequestLifestyle Constructor (Boolean)

Simple Injector

Note: This API is now obsolete.

Initializes a new instance of the WebRequestLifestyle class.

Namespace:  SimpleInjector.Integration.Web
Assembly:  SimpleInjector.Integration.Web (in SimpleInjector.Integration.Web.dll) Version: 4.0.0
Syntax

[ObsoleteAttribute("This constructor has been deprecated. Please use WebRequestLifestyle() instead.", 
	true)]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public WebRequestLifestyle(
	bool disposeInstanceWhenWebRequestEnds
)

Parameters

disposeInstanceWhenWebRequestEnds
Type: SystemBoolean
Specifies whether the created and cached instance will be disposed after the execution of the web request ended and when the created object implements IDisposable.
See Also

Reference