public static ExponentialBackoff Strategy(this ExponentialBackoffOptions options, string name) => ToExponentialBackoff(options, name);
/// <summary> /// Converts <see cref="Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ExponentialBackoffOptions"/> instance to <see cref="Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ExponentialBackoff"/> retry strategy. /// </summary> /// <param name="options">The <see cref="Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ExponentialBackoffOptions"/> instance to convert.</param> /// <param name="name">The name of the retry strategy.</param> /// <returns>The converted <see cref="Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ExponentialBackoff"/> retry strategy.</returns> public static ExponentialBackoff ToExponentialBackoff(this ExponentialBackoffOptions options, string name) { Argument.NotNull(options, nameof(options)); return(new ExponentialBackoff(name, options.RetryCount, options.MinBackOff, options.MaxBackOff, options.DeltaBackOff, options.FastFirstRetry)); }