Table of Contents

Method DisconnectAsync

Namespace
OBSStudioClient.Model
Assembly
OBSClient.dll

DisconnectAsync()

Closes the connection to OBS Studio. The model keeps the last values that it knew (IsStale). The task completes when the connection is closed.

public Task DisconnectAsync()

Returns

Task

Remarks

A call of ConnectAsync(string, int, string, CancellationToken) that is under way is ended: it throws an OperationCanceledException. This returns when that call has ended, so that ConnectAsync(string, int, string, CancellationToken) can be called again as soon as it has returned.

Exceptions

ObjectDisposedException

The ObsModel is disposed.

TimeoutException

The connection was not closed within ten seconds, or the call of ConnectAsync(string, int, string, CancellationToken) that this ended did not end within that time.