ServerFactory.ConnectAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
ConnectAsync(String, CancellationToken) |
Se connecte à un canal IPC qui a été créé avec Create(Func<Stream,Task>, ServerFactory+ServerOptions). |
ConnectAsync(String, ServerFactory+ClientOptions, CancellationToken) |
Se connecte à un canal IPC qui a été créé avec Create(Func<Stream,Task>, ServerFactory+ServerOptions). |
ConnectAsync(String, CancellationToken)
Se connecte à un canal IPC qui a été créé avec Create(Func<Stream,Task>, ServerFactory+ServerOptions).
public static System.Threading.Tasks.Task<System.IO.Stream> ConnectAsync (string pipeName, System.Threading.CancellationToken cancellationToken);
static member ConnectAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Public Shared Function ConnectAsync (pipeName As String, cancellationToken As CancellationToken) As Task(Of Stream)
Paramètres
- pipeName
- String
Un nom de canal complet, y compris le chemin d’accès. Sur Windows, le chemin d’accès préfixé doit être \.\pipe</code>.
-
cancellationToken
-
CancellationToken
Jeton d'annulation.
Retours
Flux duplex établi sur le canal.
S’applique à
ConnectAsync(String, ServerFactory+ClientOptions, CancellationToken)
Se connecte à un canal IPC qui a été créé avec Create(Func<Stream,Task>, ServerFactory+ServerOptions).
public static System.Threading.Tasks.Task<System.IO.Stream> ConnectAsync (string pipeName, Microsoft.ServiceHub.Framework.ServerFactory.ClientOptions options, System.Threading.CancellationToken cancellationToken);
static member ConnectAsync : string * Microsoft.ServiceHub.Framework.ServerFactory.ClientOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Public Shared Function ConnectAsync (pipeName As String, options As ServerFactory.ClientOptions, cancellationToken As CancellationToken) As Task(Of Stream)
Paramètres
-
pipeName
-
String
Un nom de canal complet, y compris le chemin d’accès. Sur Windows, le chemin d’accès préfixé doit être \.\pipe</code>.
-
options
-
ServerFactory.ClientOptions
Options qui peuvent influencer la façon dont le canal IPC est connecté.
-
cancellationToken
-
CancellationToken
Jeton d'annulation.
Retours
Flux duplex établi sur le canal.
S’applique à