SDK C# v2.x

ConnectAsync #

Connects to Kuzzle using the subsequent protocol ConnectAsync method.

Subsequent call have no effect if the SDK is already connected.

Arguments #

Copied to clipboard!
public async Task ConnectAsync(CancellationToken cancellationToken);

Returns #

Returns a Task resolving when the SDK is connected.

Usage #

Copied to clipboard!
await kuzzle.ConnectAsync(CancellationToken.None);
Console.WriteLine("Successfully connected");