ServiceBrokerAggregator.Parallel 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个新的 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 正在使用时, 不 应修改该集合。
返回
聚合 service broker。