public static IServiceBusBuilder UseConsumerRetry(this IServiceBusBuilder config, int retryCount, Func <int, TimeSpan> sleepDurationProvider)
        {
            var policy = Policy.Handle <Exception>()
                         .WaitAndRetryAsync(retryCount, sleepDurationProvider);

            return(config.UseConsumerRetry(policy));
        }
        public static IServiceBusBuilder UseConsumerRetry(this IServiceBusBuilder config, params TimeSpan[] sleepDurations)
        {
            var policy = Policy.Handle <Exception>()
                         .WaitAndRetryAsync(sleepDurations);

            return(config.UseConsumerRetry(policy));
        }