Click or drag to resize

ISslStreamConnectAsync Method

Begins the process of connecting to the remote host and negotiating the TLS handshake

Namespace:  Couchbase.Lite.DI
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0125
Syntax
C#
Task ConnectAsync(
	string targetHost,
	ushort targetPort,
	X509CertificateCollection clientCertificates,
	bool checkCertificateRevocation
)

Parameters

targetHost
Type: SystemString
The host name or IP to connect to
targetPort
Type: SystemUInt16
The TCP host port to connect to
clientCertificates
Type: X509CertificateCollection
The client certificates to use, if any (note: still not implemented)
checkCertificateRevocation
Type: SystemBoolean
Whether or not to check for certificate revocation (not supported on UWP)

Return Value

Type: Task
An awaitable Task
See Also