WebApiRequestLifestyle Constructor (Boolean)

Simple Injector

Note: This API is now obsolete.

Initializes a new instance of the WebApiRequestLifestyle class.

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

[ObsoleteAttribute("This constructor overload has been deprecated. Please use WebApiRequestLifestyle() instead.", 
	true)]
public WebApiRequestLifestyle(
	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

Reference