private async Task <IDbConnection> CreateConnectionAsync(string connectionString, CancellationToken cancellationToken) { var connection = new ReliableSqlDbConnection(connectionString, _retryPolicy); await connection.OpenAsync(cancellationToken); return(connection); }
private IDbConnection CreateConnection(string connectionString) { var connection = new ReliableSqlDbConnection(connectionString, _retryPolicy); connection.Open(); return(connection); }