Esempio n. 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);
        }
Esempio n. 2
0
 public EventHubHelper()
 {
     _retryPolicy = Microsoft.Azure.EventHubs.RetryPolicy.Default;
 }