Share via


ServerFactory.ConnectAsync Method

Definition

Overloads

ConnectAsync(String, CancellationToken)

Connects to an IPC pipe that was created with Create(Func<Stream,Task>, ServerFactory+ServerOptions).

ConnectAsync(String, ServerFactory+ClientOptions, CancellationToken)

Connects to an IPC pipe that was created with Create(Func<Stream,Task>, ServerFactory+ServerOptions).

ConnectAsync(String, CancellationToken)

Connects to an IPC pipe that was created with 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)

Parameters

pipeName
String

A fully-qualified pipe name, including the path. On Windows the prefixed path should be \.\pipe</code>.

cancellationToken
CancellationToken

A cancellation token.

Returns

The duplex stream established over the pipe.

Applies to

ConnectAsync(String, ServerFactory+ClientOptions, CancellationToken)

Connects to an IPC pipe that was created with 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)

Parameters

pipeName
String

A fully-qualified pipe name, including the path. On Windows the prefixed path should be \.\pipe</code>.

options
ServerFactory.ClientOptions

Options that can influence how the IPC pipe is connected to.

cancellationToken
CancellationToken

A cancellation token.

Returns

The duplex stream established over the pipe.

Applies to