WcfOperationLifestyle Constructor (Boolean)

Simple Injector

Note: This API is now obsolete.

Initializes a new instance of the WcfOperationLifestyle class.

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

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

Parameters

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

Reference