Zum Hauptinhalt springen

CkOperationWaitOptions

Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.Tenants.Methods

Options of a wait for an operation.

public sealed class CkOperationWaitOptions

Inheritance Object → CkOperationWaitOptions

Properties​

DefaultPollInterval​

The delay between two reads when the handle carries no CkOperationHandle.RetryAfterSeconds; default 2 s.

public TimeSpan DefaultPollInterval { get; set; }

Property Value​

TimeSpan

MinPollInterval​

The shortest delay between two reads; default 1 s.

public TimeSpan MinPollInterval { get; set; }

Property Value​

TimeSpan

MaxPollInterval​

The longest delay between two reads, also when the service suggests more; default 30 s.

public TimeSpan MaxPollInterval { get; set; }

Property Value​

TimeSpan

WaitBeforeFirstRead​

true (default) waits CkOperationHandle.RetryAfterSeconds before the first read, as the service suggests; false reads at once (e.g. for a handle created from a stored id).

public bool WaitBeforeFirstRead { get; set; }

Property Value​

Boolean

BeforeReadAsync​

Called before every read, e.g. to refresh the access token of the tenant client during a long wait.

public Func<CancellationToken, Task> BeforeReadAsync { get; set; }

Property Value​

Func<CancellationToken, Task>

TimeProvider​

The time provider of the delays (tests); default TimeProvider.System.

public TimeProvider TimeProvider { get; set; }

Property Value​

TimeProvider

Constructors​

CkOperationWaitOptions()​

public CkOperationWaitOptions()