Condividi tramite


GlobalBrokeredServiceContainer.ProfferedServiceBroker.GetPipeAsync Metodo

Definizione

Richiede l'accesso ad alcuni servizi tramite .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)

Parametri

serviceMoniker
ServiceMoniker

Moniker per il servizio.

options
ServiceActivationOptions

Opzioni aggiuntive che modificano la modalità di attivazione del servizio o forniscono dati aggiuntivi al costruttore del servizio.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Pipe duplex che può essere usata per comunicare con il servizio; oppure null se non è stato trovato alcun servizio corrispondente. Questa operazione deve essere eliminata quando non è più necessario.

Implementazioni

Si applica a