IInstanceContextProvider.InitializeInstanceContext(InstanceContext, Message, IContextChannel) IInstanceContextProvider.InitializeInstanceContext(InstanceContext, Message, IContextChannel) IInstanceContextProvider.InitializeInstanceContext(InstanceContext, Message, IContextChannel) Method

Definition

Called when null is returned from the GetExistingInstanceContext(Message, IContextChannel) method.

public:
 void InitializeInstanceContext(System::ServiceModel::InstanceContext ^ instanceContext, System::ServiceModel::Channels::Message ^ message, System::ServiceModel::IContextChannel ^ channel);
public void InitializeInstanceContext (System.ServiceModel.InstanceContext instanceContext, System.ServiceModel.Channels.Message message, System.ServiceModel.IContextChannel channel);
abstract member InitializeInstanceContext : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Message * System.ServiceModel.IContextChannel -> unit

Parameters

message
Message Message Message

The incoming message.

channel
IContextChannel IContextChannel IContextChannel

The channel that received the message.

Remarks

InitializeInstanceContext is called when GetExistingInstanceContext returns null and a new InstanceContext object is created. This method is called to notify you that a new InstanceContext has been created.

Applies to