Click or drag to resize

RegistrationExtensionsRegisterServiceFabricSupport Method

Adds the core services required by the Service Fabric integration.

Namespace:  Autofac.Integration.ServiceFabric
Assembly:  Autofac.Integration.ServiceFabric (in Autofac.Integration.ServiceFabric.dll) Version: 4.0.0+53f7ca733a9fa0f3ab85fdb93561bfb2dbae108b
Syntax
public static void RegisterServiceFabricSupport(
	this ContainerBuilder builder,
	Action<Exception> constructorExceptionCallback = null,
	Action<ContainerBuilder> configurationAction = null
)

Parameters

builder
Type: AutofacContainerBuilder
The container builder to register the services with.
constructorExceptionCallback (Optional)
Type: SystemActionException
Callback will be invoked if an exception is thrown during resolving.
configurationAction (Optional)
Type: SystemActionContainerBuilder
Callback will be invoked while configuring the lifetime scope for a service.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ContainerBuilder. 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).
See Also