Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

GoogleWorkspaceRetryOptions

Namespace OfficeIMO.GoogleWorkspace
Assembly OfficeIMO.GoogleWorkspace
Source revision c8404474f9f2 with working tree changes
Modifiers sealed

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 requiredposition: 0
Maximum retries after the initial request; negative values become zero.
baseDelay System.TimeSpan requiredposition: 1
Initial backoff delay; nonpositive values use 200 milliseconds.
maxDelay System.TimeSpan requiredposition: 2
Maximum delay between attempts; nonpositive values use 5 seconds and values below the base delay are raised to it.
sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions? = null optionalposition: 3
Optional source for elapsed-time and rate-limit policy.

Methods

public static GoogleWorkspaceRetryOptions FromSessionOptions(GoogleWorkspaceSessionOptions options) #
Returns: GoogleWorkspaceRetryOptions

Creates retry options from the corresponding session settings.

Parameters

options OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions requiredposition: 0
Session settings to snapshot.

Returns

Normalized immutable retry options.

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.