Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConnectionRetryOptions"/> class.
 /// </summary>
 private ConnectionRetryOptions(ConnectionRetryOptions other)
 {
     InitialBackoffMilliseconds = other.InitialBackoffMilliseconds;
     MaxBackoffMilliseconds     = other.MaxBackoffMilliseconds;
     Multiplier = other.Multiplier;
     ClusterConnectionTimeoutMilliseconds = other.ClusterConnectionTimeoutMilliseconds;
     Jitter = other.Jitter;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RetryStrategy"/> class.
 /// </summary>
 /// <param name="action">The description of the action.</param>
 /// <param name="options">Configuration.</param>
 /// <param name="loggerFactory">A logger factory.</param>
 public RetryStrategy(string action, ConnectionRetryOptions options, ILoggerFactory loggerFactory)
     : this(action,
            (options ?? throw new ArgumentNullException(nameof(options))).InitialBackoffMilliseconds,