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