ServiceBrokerAggregator.Parallel 方法

定义

创建一个新的 IServiceBroker。 服务请求将以并行方式转发到其他 IServiceBroker 实例的列表。 最多允许一个代理使用服务进行响应,或者会释放所有结果并引发异常。

public:
 static Microsoft::ServiceHub::Framework::IServiceBroker ^ Parallel(System::Collections::Generic::IReadOnlyCollection<Microsoft::ServiceHub::Framework::IServiceBroker ^> ^ serviceBrokers);
public static Microsoft.ServiceHub.Framework.IServiceBroker Parallel (System.Collections.Generic.IReadOnlyCollection<Microsoft.ServiceHub.Framework.IServiceBroker> serviceBrokers);
static member Parallel : System.Collections.Generic.IReadOnlyCollection<Microsoft.ServiceHub.Framework.IServiceBroker> -> Microsoft.ServiceHub.Framework.IServiceBroker
Public Shared Function Parallel (serviceBrokers As IReadOnlyCollection(Of IServiceBroker)) As IServiceBroker

参数

serviceBrokers
IReadOnlyCollection<IServiceBroker>

聚合到新的服务代理的集合。 此集合已存储;不复制。 当所返回的 broker 正在使用时, 应修改该集合。

返回

IServiceBroker

聚合 service broker。

适用于