Click or drag to resize

ClientBaseConnectAsync(String, Int32, CancellationToken) Method

Establishes connection to a remote server. You can use ConnectSSL(String, Int32) when SSL/TLS connection is needed.

Namespace: Limilabs.Client
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task ConnectAsync(
	string host,
	int port,
	CancellationToken cancel = default
)

Parameters

host  String
The name or IP address of the remote server.
port  Int32
The port number of the remote server.
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

Task
A task that represents the asynchronous connect operation.
See Also