API Reference
Class
GoogleWorkspaceRetryOptions
Immutable retry limits and rate-limit behavior for a Google Workspace request.
Inheritance
- Object
- GoogleWorkspaceRetryOptions
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
Accepted by parameters 1
Constructors
public GoogleWorkspaceRetryOptions(Int32 maxRetryCount, TimeSpan baseDelay, TimeSpan maxDelay, GoogleWorkspaceSessionOptions? sessionOptions = null) #Creates normalized retry options.
Parameters
- maxRetryCount System.Int32
- Maximum retries after the initial request; negative values become zero.
- baseDelay System.TimeSpan
- Initial backoff delay; nonpositive values use 200 milliseconds.
- maxDelay System.TimeSpan
- Maximum delay between attempts; nonpositive values use 5 seconds and values below the base delay are raised to it.
- sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions? = null
- Optional source for elapsed-time and rate-limit policy.
Methods
public static GoogleWorkspaceRetryOptions FromSessionOptions(GoogleWorkspaceSessionOptions options) #Returns:
GoogleWorkspaceRetryOptionsCreates retry options from the corresponding session settings.
Parameters
- options OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions
- Session settings to snapshot.
Returns
Normalized immutable retry options.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public Int32 MaxRetryCount { get; } #Gets the maximum retries after the initial request.
public TimeSpan BaseDelay { get; } #Gets the initial exponential-backoff delay.
public TimeSpan MaxDelay { get; } #Gets the upper bound for one retry delay.
public GoogleWorkspaceSessionOptions? SessionOptions { get; } #Gets the originating session settings, when supplied.
public TimeSpan MaxElapsedTime { get; } #Gets the maximum aggregate elapsed time for attempts and delays.
public GoogleWorkspaceRateLimitPolicy RateLimitPolicy { get; } #Gets the behavior applied to retryable quota responses.