IInstanceContextInitializer Interface
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.
Defines the methods necessary to inspect or modify the creation of InstanceContext objects when required.
public interface class IInstanceContextInitializer
public interface IInstanceContextInitializer
type IInstanceContextInitializer = interface
Public Interface IInstanceContextInitializer
Remarks
To inspect or modify InstanceContext objects when they are created, implement the IInstanceContextInitializer interface and use an IContractBehavior to add it to the InstanceContextInitializers property.
There can be any number of context initializers for a service. Typically, the IInstanceContextInitializer is added to attach an extension to the InstanceContext object as a mechanism for passing data throughout an application.
If you want to participate in providing or selecting the InstanceContext object that processes a message, see System.ServiceModel.Dispatcher.IInstanceContextProvider.
Methods
Initialize(InstanceContext, Message) |
Provides the ability to modify the newly created InstanceContext object. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기