namespace Best.HTTP.Request.Settings { /// /// Represents settings related to request retry behavior. /// public class RetrySettings { /// /// Gets the number of times that the plugin has retried the request. /// public int Retries { get; set; } /// /// Gets or sets the maximum number of retry attempts allowed. To disable retries, set this value to 0. /// The default value is 1 for GET requests, otherwise 0. /// public int MaxRetries { get; set; } /// /// Initializes a new instance of the RetrySettings class with the specified maximum retry attempts. /// /// The maximum number of retry attempts allowed. public RetrySettings(int maxRetries) => this.MaxRetries = maxRetries; } }