IInstanceContextProvider.InitializeInstanceContext(InstanceContext, Message, IContextChannel) Método

Definição

Chamado quando null é retornado do método GetExistingInstanceContext(Message, IContextChannel).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

Parâmetros

instanceContext
InstanceContext

O novo objeto InstanceContext.The new InstanceContext object.

message
Message

A mensagem de entrada.The incoming message.

channel
IContextChannel

O canal que recebeu a mensagem.The channel that received the message.

Comentários

InitializeInstanceContexté chamado quando GetExistingInstanceContext retorna null e um novo InstanceContext objeto é criado.InitializeInstanceContext is called when GetExistingInstanceContext returns null and a new InstanceContext object is created. Esse método é chamado para notificá-lo de que InstanceContext um novo foi criado.This method is called to notify you that a new InstanceContext has been created.

Aplica-se a