Sdílet prostřednictvím


GlobalBrokeredServiceContainer.View.GetPipeAsync Metoda

Definice

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

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)

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í kanál, který může být použit 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