Bagikan melalui


ServiceBrokerAggregator.Parallel Method

Definition

Creates a new IServiceBroker. Service requests are forwarded to a list of other IServiceBroker instances in parallel. At most one broker is allowed to respond with a service or all results are disposed and an exception is thrown.

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

Parameters

serviceBrokers
IReadOnlyCollection<IServiceBroker>

A collection 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