Export (0) Print
Expand All

IInstanceContextInitializer Interface

Defines the methods necessary to inspect or modify the creation of InstanceContext objects when required.

Namespace: System.ServiceModel.Dispatcher
Assembly: System.ServiceModel (in system.servicemodel.dll)

public interface IInstanceContextInitializer
public interface IInstanceContextInitializer
public interface IInstanceContextInitializer
Not applicable.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft