PipeClient(TMessage).ConnectAsync Method

Tungsten Suite

PipeClientTMessageConnectAsync Method

Attempts to asynchronously connect the pipe to a pipe server

Namespace:  W.IO.Pipes
Assembly:  Tungsten.IO.Pipes (in Tungsten.IO.Pipes.dll) Version: 2.0.3
Syntax
C#
public Task<bool> ConnectAsync(
	string serverName,
	string pipeName,
	TokenImpersonationLevel tokenImpersonationLevel,
	int msTimeout
)

Parameters

serverName
Type: SystemString
The name or ip of the machine hosting the server pipe
pipeName
Type: SystemString
The name of the pipe
tokenImpersonationLevel
Type: System.Security.PrincipalTokenImpersonationLevel
The impersonation type for the pipe to use
msTimeout
Type: SystemInt32
The maximum amount of time, in milliseconds, to wait for the server to connect

Return Value

Type: TaskBoolean
True if a connection was established, otherwise False
See Also