Sdílet prostřednictvím


GlobalBrokeredServiceContainer.ProfferedViewIntrinsicService.GetPipeAsync Metoda

Definice

Přetížení

GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)
Zastaralé.

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

GetPipeAsync(GlobalBrokeredServiceContainer+View, ServiceMoniker, ServiceActivationOptions, CancellationToken)

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

GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)

Upozornění

Use the overload that takes a View instead.

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

[System.Obsolete("Use the overload that takes a View instead.", true)]
public override System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe?> GetPipeAsync(Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceActivationOptions options, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use the overload that takes a View instead.", true)>]
override this.GetPipeAsync : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe>
Public Overrides 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.

Atributy

Platí pro

GetPipeAsync(GlobalBrokeredServiceContainer+View, ServiceMoniker, ServiceActivationOptions, CancellationToken)

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

public System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe?> GetPipeAsync(Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View view, Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceActivationOptions options = default, System.Threading.CancellationToken cancellationToken = default);
override this.GetPipeAsync : Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View * Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe>
Public Function GetPipeAsync (view As GlobalBrokeredServiceContainer.View, serviceMoniker As ServiceMoniker, Optional options As ServiceActivationOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of IDuplexPipe)

Parametry

view
GlobalBrokeredServiceContainer.View

Zobrazení použité k vyžádání této služby.

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.

Platí pro