/// <summary> /// Returns the default retry strategy for Oracle connections. /// </summary> /// <returns>The default retry strategy for Oracle connections (or the default strategy, if no default could be found).</returns> public static RetryStrategy GetDefaultOracleConnectionRetryStrategy(this RetryManager retryManager) { if (retryManager == null) { throw new ArgumentNullException("retryManager"); } try { return(retryManager.GetDefaultRetryStrategy(DefaultStrategyConnectionTechnologyName)); } catch (ArgumentOutOfRangeException) { return(retryManager.GetDefaultRetryStrategy(DefaultStrategyCommandTechnologyName)); } }
/// <summary> /// Returns the default retry strategy for Oracle commands. /// </summary> /// <returns>The default retry strategy for Oracle commands (or the default strategy, if no default could be found).</returns> public static RetryStrategy GetDefaultOracleCommandRetryStrategy(this RetryManager retryManager) { if (retryManager == null) { throw new ArgumentNullException("retryManager"); } return(retryManager.GetDefaultRetryStrategy(DefaultStrategyCommandTechnologyName)); }
/// <summary> /// Returns the default retry strategy for the Windows Azure Service Bus. /// </summary> /// <returns>The default Windows Azure Service Bus retry strategy (or the default strategy if no default for Windows Azure Service Bus could be found).</returns> public static RetryStrategy GetDefaultAzureServiceBusRetryStrategy(this RetryManager retryManager) { Argument.NotNull(retryManager, nameof(retryManager)); return(retryManager.GetDefaultRetryStrategy(DefaultStrategyTechnologyName)); }