RemoteServiceBroker.GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken) 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 = default, System.Threading.CancellationToken cancellationToken = default);
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, Optional options As ServiceActivationOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of IDuplexPipe)

Parâmetros

serviceMoniker
ServiceMoniker

O moniker do 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

ValueTask<IDuplexPipe>

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

Implementações

Aplica-se a