Пример #1
0
        public EventHubHelper(int minimalMilliseconds = 10, int maximumMilliseconds = 50, int retryTimes = 10)
        {
            var minimumBackoff = TimeSpan.FromMilliseconds(minimalMilliseconds);
            var maximumBackoff = TimeSpan.FromMilliseconds(maximumMilliseconds);

            _retryPolicy = Microsoft.Azure.EventHubs.RetryPolicy.Default;//new Microsoft.Azure.EventHubs.RetryExponential(minimumBackoff, maximumBackoff, retryTimes);
        }
Пример #2
0
 public EventHubHelper()
 {
     _retryPolicy = Microsoft.Azure.EventHubs.RetryPolicy.Default;
 }