Property ConfirmationTimeout
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
ConfirmationTimeout
Gets or sets how long a change waits for the model to show it, after OBS Studio has answered the request. The default is 1 second. It must be between 1 millisecond and 24 days.
public TimeSpan ConfirmationTimeout { get; set; }
Property Value
Remarks
OBS Studio announces a change with an event, which can arrive a few milliseconds after the answer to the request. A change method (for example SetEnabledAsync(bool, CancellationToken)) returns when the model shows the change, so that what you read next is what you changed. When the event has not made the model show it within this time (OBS Studio sends no event for some changes until a transition has ended, and an event can be lost), the model reads the part that the change was about, and the method returns with what OBS Studio holds then. When that read does not complete in time either (twice ReadTimeout), the method ends with an ObsNotConfirmedException.