/// <summary> /// Returns the default retry policy dedicated to handling transient conditions with MySql connections. /// </summary> /// <returns>The retry policy for MySql connections with the corresponding default strategy (or the default strategy, if no retry strategy for MySql connections was found).</returns> public static RetryPolicy GetDefaultMySqlConnectionRetryPolicy(this RetryManager retryManager) { if (retryManager == null) { throw new ArgumentNullException("retryManager"); } return(new RetryPolicy(new MySqlDatabaseTransientErrorDetectionStrategy(), retryManager.GetDefaultMySqlConnectionRetryStrategy())); }