This documentation is archived and is not being maintained.

DispatchOperation.CallContextInitializers Property

A collection of System.ServiceModel.Dispatcher.ICallContextInitializer objects that defines the methods that enable the initialization and recycling of thread-local storage with the thread that invokes user code.

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

public SynchronizedCollection<ICallContextInitializer> CallContextInitializers { get; }

Use the CallContextInitializers property to add custom ICallContextInitializer objects that add state to the call context for the duration of the call and can retrieve it subsequent to the completion of the call but prior to returning the message.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0