<PackageReference Include="Grpc.Net.Client" Version="2.80.0" />

Grpc.Net.Client.Configuration.RetryThrottlingPolicy

public sealed class RetryThrottlingPolicy : ConfigObject
The retry throttling policy for a server.

For more information about configuring throttling, see .

public int? MaxTokens { get; set; }

Gets or sets the maximum number of tokens. The number of tokens starts at MaxTokens and the token count will always be between 0 and MaxTokens. This property is required and must be greater than zero.

public double? TokenRatio { get; set; }

Gets or sets the amount of tokens to add on each successful call. Typically this will be some number between 0 and 1, e.g., 0.1. This property is required and must be greater than zero. Up to 3 decimal places are supported.

Initializes a new instance of the RetryThrottlingPolicy class.