IInstanceContextInitializer.Initialize(InstanceContext, Message) 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.
Provides the ability to modify the newly created InstanceContext object.
public:
void Initialize(System::ServiceModel::InstanceContext ^ instanceContext, System::ServiceModel::Channels::Message ^ message);
public void Initialize (System.ServiceModel.InstanceContext instanceContext, System.ServiceModel.Channels.Message message);
abstract member Initialize : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Message -> unit
Public Sub Initialize (instanceContext As InstanceContext, message As Message)
Parameters
- instanceContext
- InstanceContext
The system-supplied instance context.
- message
- Message
The message that triggered the creation of the instance context.
Remarks
The Initialize method is called when an InstanceContext object is created. Typically this method is used to attach an extension so that custom data can be accessed throughout an application.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.