/// <summary> /// Sends the specified command to the connection and builds a MySqlDataReader object by using the specified /// command behavior. Uses the default retry policy when executing the command. /// </summary> /// <param name="command">The command object that is required for the extension method declaration.</param> /// <param name="behavior">One of the enumeration values that specifies the command behavior.</param> /// <returns>A System.Data.MySqlClient.MySqlDataReader object.</returns> public static async Task <MySqlDataReader> ExecuteReaderWithRetryAsync(this MySqlCommand command, CommandBehavior behavior) { return((MySqlDataReader)await command.ExecuteReaderWithRetryAsync(behavior, RetryManager.Instance.GetDefaultMySqlCommandRetryPolicy())); }