43 references to AsyncHelper
System.Data (43)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (17)
1758
AsyncHelper
.ContinueTask(writeTask, tcs, () => tcs.SetResult(null));
1764
AsyncHelper
.WaitForCompletion(reconnectTask, BulkCopyTimeout, () => { throw SQL.CR_ReconnectTimeout(); }, rethrowExceptions: false);
2051
AsyncHelper
.ContinueTask(task, source, () => {
2146
AsyncHelper
.ContinueTask(task, source, () => {
2187
AsyncHelper
.ContinueTask(readTask, source, () => CopyRowsAsync(i + 1, totalRows, cts, source), connectionToDoom: _connection.GetOpenTdsConnection());
2195
AsyncHelper
.ContinueTask(task, source, onSuccess: () => {
2203
AsyncHelper
.ContinueTask(readTask, source, onSuccess: () => CopyRowsAsync(i + 1, totalRows, cts, source), connectionToDoom: _connection.GetOpenTdsConnection());
2261
AsyncHelper
.ContinueTask(commandTask, source, () => {
2312
AsyncHelper
.ContinueTask(task, source, () => {
2356
AsyncHelper
.ContinueTask(writeTask, source, () => {
2482
AsyncHelper
.ContinueTask(task, source, () => {
2585
AsyncHelper
.ContinueTask(reconnectTask, cancellableReconnectTS, () => { cancellableReconnectTS.SetResult(null); });
2587
AsyncHelper
.SetTimeoutException(cancellableReconnectTS, BulkCopyTimeout,
2589
AsyncHelper
.ContinueTask(cancellableReconnectTS.Task, source,
2608
AsyncHelper
.WaitForCompletion(reconnectTask, this.BulkCopyTimeout, () => { throw SQL.CR_ReconnectTimeout(); } );
2642
AsyncHelper
.ContinueTask(internalResultsTask, source, () => WriteToServerInternalRestContinuedAsync(internalResultsTask.Result, cts, source), _connection.GetOpenTdsConnection());
2699
AsyncHelper
.ContinueTask(readTask, source, () => {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (16)
1277
AsyncHelper
.ContinueTask(execNQ, localCompletion, () => BeginExecuteNonQueryInternalReadStage(localCompletion));
1661
task =
AsyncHelper
.CreateContinuationTask(task, () => reader.Close());
1781
AsyncHelper
.ContinueTask(writeTask, localCompletion, () => BeginExecuteXmlReaderInternalReadStage(localCompletion));
2174
AsyncHelper
.ContinueTask(writeTask, localCompletion, () => BeginExecuteReaderInternalReadStage(localCompletion));
3072
AsyncHelper
.SetTimeoutException(completion, timeout, SQL.CR_ReconnectTimeout, timeoutCTS.Token);
3073
AsyncHelper
.ContinueTask(reconnectTask, completion,
3085
AsyncHelper
.ContinueTask(subTask, completion, () => completion.SetResult(null));
3091
AsyncHelper
.WaitForCompletion(reconnectTask, timeout, () => { throw SQL.CR_ReconnectTimeout(); });
3370
returnTask =
AsyncHelper
.CreateContinuationTask(fetchInputParameterEncryptionInfoTask, () => {
4283
AsyncHelper
.ContinueTask(describeParameterEncryptionTask, completion,
4292
AsyncHelper
.ContinueTask(subTask, completion, () => completion.SetResult(null));
4358
AsyncHelper
.SetTimeoutException(completion, timeout, SQL.CR_ReconnectTimeout, timeoutCTS.Token);
4359
AsyncHelper
.ContinueTask(reconnectTask, completion,
4372
AsyncHelper
.ContinueTask(subTask, completion, () => completion.SetResult(null));
4379
AsyncHelper
.WaitForCompletion(reconnectTask, timeout, () => { throw SQL.CR_ReconnectTimeout(); });
4543
task =
AsyncHelper
.CreateContinuationTask(writeTask, () => {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1095
AsyncHelper
.WaitForCompletion(reconnectTask, 0, null, rethrowExceptions: false); // we do not need to deal with possible exceptions in reconnection
1367
AsyncHelper
.WaitForCompletion(reconnectTask, 0, null, rethrowExceptions: false);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (2)
1126
AsyncHelper
.WaitForCompletion(reconnectTask, 0); // there is no specific timeout for BeginTransaction, uses ConnectTimeout
2048
AsyncHelper
.WaitForCompletion(reconnectTask, timeout);
fx\src\data\System\Data\SqlClient\TdsParser.cs (3)
8544
AsyncHelper
.ContinueTask(writeParamTask, completion,
9931
return
AsyncHelper
.CreateContinuationTask<int, TdsParserStateObject>(unterminatedWriteTask,
10722
return
AsyncHelper
.CreateContinuationTask<SqlColumnEncryptionInputParameterInfo, TdsParserStateObject>(terminatedWriteTask,
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (3)
968
return
AsyncHelper
.CreateContinuationTask(writePacketTask, () => { _pendingData = true; _messageStatus = 0; });
2804
AsyncHelper
.ContinueTask(packetTask, completion,
2862
task =
AsyncHelper
.CreateContinuationTask(task, CancelWritePacket, _parser.Connection);