示例#1
0
        private async Task <IDbConnection> CreateConnectionAsync(string connectionString, CancellationToken cancellationToken)
        {
            var connection = new ReliableSqlDbConnection(connectionString, _retryPolicy);
            await connection.OpenAsync(cancellationToken);

            return(connection);
        }
示例#2
0
        private IDbConnection CreateConnection(string connectionString)
        {
            var connection = new ReliableSqlDbConnection(connectionString, _retryPolicy);

            connection.Open();

            return(connection);
        }