Sdílet prostřednictvím


ServiceBrokerAggregator.Sequential Method

Definition

Creates a new IServiceBroker. Service requests are forwarded to a list of other IServiceBroker instances one-at-a-time. The first broker to return a successful response is returned to the caller.

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

Parameters

serviceBrokers
IReadOnlyList<IServiceBroker>

A list of service brokers aggregated into the new one. This collection is stored; not copied. The collection should not be modified while the returned broker is in use.

Returns

The aggregate service broker.

Applies to