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.10.2
Syntax

[ObsoleteAttribute("Please use WebRequestLifestyle() instead. Will be removed in version 5.0.", 
	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