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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for