GlobalBrokeredServiceContainer.ProfferedViewIntrinsicService.GetProxyAsync Metodo

Definizione

Overload

GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)
Obsoleti.

Richiede l'accesso a un servizio tramite un proxy client.

GetProxyAsync<T>(GlobalBrokeredServiceContainer+View, ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)

Richiede l'accesso a un servizio tramite un proxy client.

GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)

Attenzione

Use the overload that takes a View instead.

Richiede l'accesso a un servizio tramite un proxy client.

[System.Obsolete("Use the overload that takes a View instead.", true)]
public override System.Threading.Tasks.ValueTask<T?> GetProxyAsync<T>(Microsoft.ServiceHub.Framework.ServiceRpcDescriptor serviceDescriptor, Microsoft.ServiceHub.Framework.ServiceActivationOptions options, System.Threading.CancellationToken cancellationToken) where T : class;
[<System.Obsolete("Use the overload that takes a View instead.", true)>]
override this.GetProxyAsync : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<'T (requires 'T : null)> (requires 'T : null)
Public Overrides Function GetProxyAsync(Of T As Class) (serviceDescriptor As ServiceRpcDescriptor, options As ServiceActivationOptions, cancellationToken As CancellationToken) As ValueTask(Of T)

Parametri di tipo

T

Tipo di proxy client da creare.

Parametri

serviceDescriptor
ServiceRpcDescriptor

Descrittore del 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

Proxy client che può essere usato per comunicare con il servizio; o null se non è stato trovato alcun servizio corrispondente. Questa operazione deve essere eliminata quando non è più necessaria se l'istanza restituita implementa IDisposable.

Attributi

Si applica a

GetProxyAsync<T>(GlobalBrokeredServiceContainer+View, ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)

Richiede l'accesso a un servizio tramite un proxy client.

public System.Threading.Tasks.ValueTask<T?> GetProxyAsync<T>(Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View view, Microsoft.ServiceHub.Framework.ServiceRpcDescriptor serviceDescriptor, Microsoft.ServiceHub.Framework.ServiceActivationOptions options = default, System.Threading.CancellationToken cancellationToken = default) where T : class;
override this.GetProxyAsync : Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View * Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<'T (requires 'T : null)> (requires 'T : null)
Public Function GetProxyAsync(Of T As Class) (view As GlobalBrokeredServiceContainer.View, serviceDescriptor As ServiceRpcDescriptor, Optional options As ServiceActivationOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of T)

Parametri di tipo

T

Tipo di proxy client da creare.

Parametri

view
GlobalBrokeredServiceContainer.View

Visualizzazione usata per richiedere questo servizio.

serviceDescriptor
ServiceRpcDescriptor

Descrittore del 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

Proxy client che può essere usato per comunicare con il servizio; o null se non è stato trovato alcun servizio corrispondente. Questa operazione deve essere eliminata quando non è più necessaria se l'istanza restituita implementa IDisposable.

Si applica a