ServiceBrokerAggregator.Sequential 方法

定义

创建一个新的 IServiceBroker。 服务请求将转发到一次其他实例的列表 IServiceBroker 。 第一个代理返回成功的响应将返回到调用方。

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

参数

serviceBrokers
IReadOnlyList<IServiceBroker>

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

返回

IServiceBroker

聚合 service broker。

适用于