Share via


GlobalBrokeredServiceContainer.View.GetPipeAsync Method

Definition

Requests access to some service through an IDuplexPipe.

public virtual System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe?> GetPipeAsync (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceActivationOptions options, System.Threading.CancellationToken cancellationToken);
abstract member GetPipeAsync : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe>
override this.GetPipeAsync : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe>
Public Overridable Function GetPipeAsync (serviceMoniker As ServiceMoniker, options As ServiceActivationOptions, cancellationToken As CancellationToken) As ValueTask(Of IDuplexPipe)

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