Esempio n. 1
0
 public Task <T> QueryAsync <T>(IAsyncQuery <T> query, CancellationToken cancellationToken = default)
 => Retry.DoAsync(() => query.ExecuteAsync(_connection, _transaction, cancellationToken), _retryOptions);
Esempio n. 2
0
 public T Query <T>(IQuery <T> query)
 => Retry.Do(() => query.Execute(_connection, _transaction), _retryOptions);