40 references to SetResult
mscorlib (1)
system\threading\Tasks\TaskCompletionSource.cs (1)
122
/// The <see cref="
SetResult
"/>, <see cref="SetException(System.Exception)"/>,
System.Data (33)
fx\src\data\System\Data\Common\DBConnection.cs (1)
193
taskCompletionSource.
SetResult
(null);
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
180
source.
SetResult
(null);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (11)
1619
source.
SetResult
(null);
1755
tcs.
SetResult
(null);
1758
AsyncHelper.ContinueTask(writeTask, tcs, () => tcs.
SetResult
(null));
2035
source.
SetResult
(null);
2056
source.
SetResult
(null);
2284
source.
SetResult
(null);
2509
source.
SetResult
(null);
2527
source.
SetResult
(null);
2585
AsyncHelper.ContinueTask(reconnectTask, cancellableReconnectTS, () => { cancellableReconnectTS.
SetResult
(null); });
2688
source.
SetResult
(null);
2701
source.
SetResult
(null); //no rows to copy!
fx\src\data\System\Data\SqlClient\SqlCommand.cs (10)
2436
source.
SetResult
(t.Result);
2500
source.
SetResult
(t.Result);
2555
source.
SetResult
(result);
2604
source.
SetResult
(t.Result);
3082
completion.
SetResult
(null);
3085
AsyncHelper.ContinueTask(subTask, completion, () => completion.
SetResult
(null));
4289
completion.
SetResult
(null);
4292
AsyncHelper.ContinueTask(subTask, completion, () => completion.
SetResult
(null));
4369
completion.
SetResult
(null);
4372
AsyncHelper.ContinueTask(subTask, completion, () => completion.
SetResult
(null));
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1429
result.
SetResult
(null);
1495
_result.
SetResult
(null);
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (2)
207
completion.
SetResult
(bytesRead);
223
completion.
SetResult
((int)t.Result);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (2)
199
completion.
SetResult
(charsRead);
253
completion.
SetResult
(charsRead);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
40
() => { onSuccess(); completion.
SetResult
(null); },
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
8611
completion.
SetResult
(null);
8733
completion.
SetResult
(null);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
2787
completion.
SetResult
(null);
System.ServiceModel (3)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
565
this.receiveTask.
SetResult
(null);
812
this.streamWaitTask.
SetResult
(null);
923
this.receiveTask.
SetResult
(null);
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpContext.cs (1)
121
this.webSocketContextTaskSource.
SetResult
(context);
System.Web (1)
UI\PageAsyncTaskApm.cs (1)
35
IAsyncResult asyncResult = _beginHandler(sender, e, _ => { taskCompletionSource.
SetResult
(null); }, _state);
WindowsBase (1)
Base\System\Windows\Threading\DispatcherOperationTaskSource.cs (1)
59
_taskCompletionSource.
SetResult
((TResult)result);