public Task <int> DeleteAsync( CancellationToken cancellationToken = default(CancellationToken)) { return(Task.Factory.StartNew( () => { cancellationToken.ThrowIfCancellationRequested(); using (_db.Lock()) return _innerQuery.Delete(); }, cancellationToken, _taskCreationOptions, _taskScheduler ?? TaskScheduler.Default)); }
public virtual void TearDown() { connection.RunAsync(testTable.Delete()).Wait(); }
public virtual void TearDown() { connection.Run(testTable.Delete()); }