GlobalBrokeredServiceContainer.ProfferedViewIntrinsicService.GetPipeAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken) |
Obsoleti.
Richiede l'accesso a un servizio tramite un IDuplexPipeoggetto . |
| GetPipeAsync(GlobalBrokeredServiceContainer+View, ServiceMoniker, ServiceActivationOptions, CancellationToken) |
Richiede l'accesso a un servizio tramite un IDuplexPipeoggetto . |
GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)
Attenzione
Use the overload that takes a View instead.
Richiede l'accesso a un servizio tramite un IDuplexPipeoggetto .
[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)
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; o null se non è stato trovato alcun servizio corrispondente.
Questa operazione deve essere eliminata quando non è più necessario.
- Attributi
Si applica a
GetPipeAsync(GlobalBrokeredServiceContainer+View, ServiceMoniker, ServiceActivationOptions, CancellationToken)
Richiede l'accesso a un servizio tramite un IDuplexPipeoggetto .
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)
Parametri
Visualizzazione usata per richiedere questo servizio.
- 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; o null se non è stato trovato alcun servizio corrispondente.
Questa operazione deve essere eliminata quando non è più necessario.