/// <summary> /// Returns the default retry policy dedicated to handling transient conditions with Windows Azure Caching. /// </summary> /// <returns>The retry policy for Windows Azure Caching with the corresponding default strategy (or the default strategy if no retry strategy definition for Windows Azure Caching was found).</returns> public static RetryPolicy GetDefaultCachingRetryPolicy(this RetryManager retryManager) { if (retryManager == null) { throw new ArgumentNullException("retryManager"); } return(new RetryPolicy(new CacheTransientErrorDetectionStrategy(), retryManager.GetDefaultCachingRetryStrategy())); }
/// <summary> /// Returns the default retry policy dedicated to handling transient conditions with Windows Azure Caching. /// </summary> /// <returns>The retry policy for Windows Azure Caching with the corresponding default strategy (or the default strategy if no retry strategy definition for Windows Azure Caching was found).</returns> public static RetryPolicy GetDefaultCachingRetryPolicy(this RetryManager retryManager) { Argument.NotNull(retryManager, nameof(retryManager)); return(new RetryPolicy(new CacheTransientErrorDetectionStrategy(), retryManager.GetDefaultCachingRetryStrategy())); }