DispatchRuntime.ConcurrencyMode 属性

定义

获取或设置服务的实例是依次还是同时处理消息。Gets or sets whether an instance of a service processes messages sequentially or concurrently.

public:
 property System::ServiceModel::ConcurrencyMode ConcurrencyMode { System::ServiceModel::ConcurrencyMode get(); void set(System::ServiceModel::ConcurrencyMode value); };
public System.ServiceModel.ConcurrencyMode ConcurrencyMode { get; set; }
member this.ConcurrencyMode : System.ServiceModel.ConcurrencyMode with get, set
Public Property ConcurrencyMode As ConcurrencyMode

属性值

ConcurrencyMode

一个 ConcurrencyMode 对象,该对象控制服务的实例是依次还是同时处理消息。A ConcurrencyMode object that controls whether an instance of a service processes messages sequentially or concurrently.

注解

若要使用 Multiple 并发模式,服务实现必须是线程安全的。The service implementation must be thread-safe to use the Multiple concurrency mode.

适用于