次の方法で共有


IpcRelayServiceBroker.RequestServiceChannelAsync Method

Definition

Gets a pipe to a 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 = default);
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, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RemoteServiceConnectionInfo)

Parameters

serviceMoniker
ServiceMoniker

The moniker for the service.

serviceActivationOptions
ServiceActivationOptions
cancellationToken
CancellationToken

A cancellation token.

Returns

Instructions for how the client may connect to the service.

Implements

Applies to