Partager via


GlobalBrokeredServiceContainer.View.RequestServiceChannelAsync Méthode

Définition

Obtient un canal vers un service.

public System.Threading.Tasks.Task<Microsoft.ServiceHub.Framework.RemoteServiceConnectionInfo> RequestServiceChannelAsync (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceActivationOptions serviceActivationOptions, System.Threading.CancellationToken cancellationToken);
abstract member RequestServiceChannelAsync : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.ServiceHub.Framework.RemoteServiceConnectionInfo>
override this.RequestServiceChannelAsync : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.ServiceHub.Framework.RemoteServiceConnectionInfo>
Public Function RequestServiceChannelAsync (serviceMoniker As ServiceMoniker, serviceActivationOptions As ServiceActivationOptions, cancellationToken As CancellationToken) As Task(Of RemoteServiceConnectionInfo)

Paramètres

serviceMoniker
ServiceMoniker

Moniker pour le service.

serviceActivationOptions
ServiceActivationOptions
cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Instructions sur la façon dont le client peut se connecter au service.

Implémente

S’applique à