IInstanceContextProvider.InitializeInstanceContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Public Sub InitializeInstanceContext (instanceContext As InstanceContext, message As Message, channel As IContextChannel)
Parameters
- instanceContext
- InstanceContext
The new InstanceContext object.
- message
- Message
The incoming message.
- channel
- 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.