WcfOperationLifestyleWhenWcfOperationEnds Method

Simple Injector

Note: This API is now obsolete.

Allows registering an action delegate that will be called when the current WCF operation ends, but before the scope disposes any instances.

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

[ObsoleteAttribute("WhenWcfOperationEnds has been deprecated. Please use Lifestyle.Scoped.WhenScopeEnds(Container, Action) instead.", 
	true)]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static void WhenWcfOperationEnds(
	Container container,
	Action action
)

Parameters

container
Type: SimpleInjectorContainer
The Container instance.
action
Type: SystemAction
The delegate to run when the WCF operation ends.
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when one of the arguments is a null reference (Nothing in VB).
InvalidOperationExceptionWill be thrown when there is currently no active WCF operation in the supplied container instance.
See Also

Reference