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

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