Click or drag to resize

RegistrationExtensionsUseWcfSafeReleaseTLimit, TActivatorData, TRegistrationStyle Method

Dispose the channel instance in such a way that exceptions aren't thrown if a faulted channel is closed.

Namespace:  Autofac.Integration.Wcf
Assembly:  Autofac.Integration.Wcf (in Autofac.Integration.Wcf.dll) Version: 6.0.0+691de191498a27e1db2c331d318e19150e41288c
Syntax
public static IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> UseWcfSafeRelease<TLimit, TActivatorData, TRegistrationStyle>(
	this IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> registration
)

Parameters

registration
Type: Autofac.BuilderIRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle
Registration to set release action for.

Type Parameters

TLimit
Registration limit type.
TActivatorData
Activator data type.
TRegistrationStyle
Registration style.

Return Value

Type: IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle
Registration builder allowing the registration to be configured.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This will eat exceptions generated in the closing of the channel.
See Also