Grpc.Net.Client.Configuration.HedgingPolicy
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.
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.
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.
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.