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