Share via


DispatchOperation.CallContextInitializers 属性

定义

定义方法的 ICallContextInitializer 对象的集合,通过这些方法,可以使用调用用户代码的线程来初始化和回收本地线程存储。

public:
 property System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::ICallContextInitializer ^> ^ CallContextInitializers { System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::ICallContextInitializer ^> ^ get(); };
public System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.ICallContextInitializer> CallContextInitializers { get; }
member this.CallContextInitializers : System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.ICallContextInitializer>
Public ReadOnly Property CallContextInitializers As SynchronizedCollection(Of ICallContextInitializer)

属性值

ICallContextInitializer 对象的集合。

注解

使用 CallContextInitializers 属性可以添加自定义 ICallContextInitializer 对象,这些对象向调用持续时间的调用上下文中添加状态,然后在完成调用之后返回消息之前检索它。

适用于