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