Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property SynchronizedCollection<ICallContextInitializer^>^ CallContextInitializers {
	SynchronizedCollection<ICallContextInitializer^>^ 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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft