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

Grpc.Net.Client.Configuration.HedgingPolicy

public sealed class HedgingPolicy : ConfigObject
The hedging policy for outgoing calls. Hedged calls may execute more than once on the server, so only idempotent methods should specify a hedging policy.
public TimeSpan? HedgingDelay { get; set; }

Gets or sets the hedging delay. The first call will be sent immediately, but the subsequent hedged call will be sent at intervals of the specified delay. Set this to 0 or null to immediately send all hedged calls.

public int? MaxAttempts { get; set; }

Gets or sets the maximum number of call attempts. This value includes the original attempt. The hedging policy will send up to this number of calls. This property is required and must be 2 or greater. This value is limited by MaxRetryAttempts.

public IList<StatusCode> NonFatalStatusCodes { get; }

Gets a collection of status codes which indicate other hedged calls may still succeed. If a non-fatal status code is returned by the server, hedged calls will continue. Otherwise, outstanding requests will be canceled and the error returned to the client application layer. Specifying status codes is optional.

public HedgingPolicy()

Initializes a new instance of the HedgingPolicy class.