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

Grpc.Net.Client.Configuration.MethodConfig

public sealed class MethodConfig : ConfigObject
Configuration for a method. The Names collection is used to determine which methods this configuration applies to.
public HedgingPolicy HedgingPolicy { get; set; }

Gets or sets 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. A hedging policy can't be combined with RetryPolicy.

public IList<MethodName> Names { get; }

Gets a collection of names which determine the calls the method config will apply to. A MethodConfig without names won't be used. Each name must be unique across an entire ServiceConfig.

public RetryPolicy RetryPolicy { get; set; }

Gets or sets the retry policy for outgoing calls. A retry policy can't be combined with HedgingPolicy.

public MethodConfig()

Initializes a new instance of the MethodConfig class.