Click or drag to resize

AutofacInstanceContextCurrent Property

Gets the current AutofacInstanceContext for the operation.

Namespace:  Autofac.Integration.Wcf
Assembly:  Autofac.Integration.Wcf (in Autofac.Integration.Wcf.dll) Version: 6.0.0+691de191498a27e1db2c331d318e19150e41288c
Syntax
public static AutofacInstanceContext Current { get; }

Property Value

Type: AutofacInstanceContext
The AutofacInstanceContext associated with the current OperationContext if one exists; or if there isn't one.
Remarks

In a singleton service, there won't be a current AutofacInstanceContext because singleton services are resolved at the time the service host begins rather than on each operation.

See Also