SDK
SDK C# v2.x
2

ConnectAsync #

Connects to Kuzzle using the subsequent protocol ConnectAsync method.

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

Arguments #

public async Task ConnectAsync(CancellationToken cancellationToken);

Returns #

Returns a Task resolving when the SDK is connected.

Usage #

await kuzzle.ConnectAsync(CancellationToken.None);
Console.WriteLine("Successfully connected");