Compartilhar via


GlobalBrokeredServiceContainer.ProfferedRemoteServiceBroker.GetPipeAsync Método

Definição

Solicita acesso a algum serviço por meio de um IDuplexPipe.

public 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 Function GetPipeAsync (serviceMoniker As ServiceMoniker, options As ServiceActivationOptions, cancellationToken As CancellationToken) As ValueTask(Of IDuplexPipe)

Parâmetros

serviceMoniker
ServiceMoniker

O moniker para o serviço.

options
ServiceActivationOptions

Opções adicionais que alteram como o serviço pode ser ativado ou fornecem dados adicionais para o construtor de serviço.

cancellationToken
CancellationToken

Um token de cancelamento.

Retornos

O pipe duplex que pode ser usado para se comunicar com o serviço; ou null se nenhum serviço correspondente puder ser encontrado. Isso deve ser descartado quando não for mais necessário.

Implementações

Aplica-se a