Click or drag to resize

AutofacInstanceProviderGetInstance Method (InstanceContext, Message)

Returns a service object given the specified InstanceContext object.

Namespace:  Autofac.Integration.Wcf
Assembly:  Autofac.Integration.Wcf (in Autofac.Integration.Wcf.dll) Version: 6.0.0+691de191498a27e1db2c331d318e19150e41288c
Syntax
public Object GetInstance(
	InstanceContext instanceContext,
	Message message
)

Parameters

instanceContext
Type: System.ServiceModelInstanceContext
The current InstanceContext object.
message
Type: System.ServiceModel.ChannelsMessage
The message that triggered the creation of a service object.

Return Value

Type: Object
The service object.

Implements

IInstanceProviderGetInstance(InstanceContext, Message)
Exceptions
ExceptionCondition
ArgumentNullException Thrown if instanceContext is .
See Also