Click or drag to resize

AutofacDependencyInjectionServiceBehavior Constructor

Initializes a new instance of the AutofacDependencyInjectionServiceBehavior class.

Namespace:  Autofac.Integration.Wcf
Assembly:  Autofac.Integration.Wcf (in Autofac.Integration.Wcf.dll) Version: 6.0.0+691de191498a27e1db2c331d318e19150e41288c
Syntax
public AutofacDependencyInjectionServiceBehavior(
	ILifetimeScope rootLifetimeScope,
	ServiceImplementationData serviceData
)

Parameters

rootLifetimeScope
Type: AutofacILifetimeScope
The container from which service implementations should be resolved.
serviceData
Type: Autofac.Integration.WcfServiceImplementationData
Data about which service type should be hosted and how to resolve the type to use for the service implementation.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if rootLifetimeScope or serviceData is .
See Also