IInstanceContextProvider::GetExistingInstanceContext Method (Message^, IContextChannel^)
Called when a new message is received.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- message
-
Type:
System.ServiceModel.Channels::Message^
The incoming message.
- channel
-
Type:
System.ServiceModel::IContextChannel^
The channel that received the message.
Return Value
Type: System.ServiceModel::InstanceContext^The System.ServiceModel::InstanceContext object that is used to process the message; return null to instruct WCF to create a new InstanceContext object.
The GetExistingInstanceContext method is called when a message is received. Return the InstanceContext object that you want to process the message, or null. In the case of null, WCF creates a new InstanceContext object for the message and then calls the InitializeInstanceContext method.
If you return null, the new InstanceContext object goes through the throttling system and increments the count of ServiceThrottle::MaxConcurrentInstances.
Available since 3.0