Sdílet prostřednictvím


RemoteServiceBroker.GetPipeAsync Metoda

Definice

Žádost o přístup k některé službě IDuplexPipeprostřednictvím .

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)

Parametry

serviceMoniker
ServiceMoniker

Moniker pro službu.

options
ServiceActivationOptions

Další možnosti, které mění způsob aktivace služby nebo poskytují další data konstruktoru služby.

cancellationToken
CancellationToken

Token zrušení.

Návraty

Duplexní potrubí, které lze použít ke komunikaci se službou; nebo null pokud nebyla nalezena žádná odpovídající služba. Tato možnost by měla být odstraněna, pokud už není potřeba.

Implementuje

Platí pro