GlobalBrokeredServiceContainer.ProfferedRemoteServiceBroker.GetPipeAsync Method

Definition

Requests access to some service through an IDuplexPipe.

C#
public System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe?> GetPipeAsync(Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceActivationOptions options, System.Threading.CancellationToken cancellationToken);

Parameters

serviceMoniker
ServiceMoniker

The moniker for the service.

options
ServiceActivationOptions

Additional options that alter how the service may be activated or provide additional data to the service constructor.

cancellationToken
CancellationToken

A cancellation token.

Returns

The duplex pipe that may be used to communicate with the service; or null if no matching service could be found. This should be disposed when no longer required.

Implements

Applies to

Produkt Versiounen
Visual Studio SDK 2022