36 references to TrySetResult
mscorlib (2)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
224localCs.TrySetResult(default(VoidTaskResult));
system\threading\Tasks\TaskCompletionSource.cs (1)
321if (!TrySetResult(result))
System (9)
net\System\Net\mail\SmtpClient.cs (1)
759else tcs.TrySetResult(null);
net\System\Net\NetworkInformation\ping.cs (1)
573else tcs.TrySetResult(e.Reply);
net\System\Net\webclient.cs (1)
2918else tcs.TrySetResult(getResult(e));
net\System\Net\WebSockets\WebSocketBase.cs (1)
1515m_CloseReceivedTaskCompletionSource.TrySetResult(null);
net\System\Net\WebSockets\WebSocketConnectionStream.cs (3)
912thisPtr.m_WriteTaskCompletionSource.TrySetResult(null); 945thisPtr.m_ReadTaskCompletionSource.TrySetResult(0); 950thisPtr.m_ReadTaskCompletionSource.TrySetResult(eventArgs.BytesTransferred);
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (2)
802thisPtr.m_WriteTaskCompletionSource.TrySetResult(null); 832thisPtr.m_ReadTaskCompletionSource.TrySetResult(eventArgs.BytesTransferred);
System.Data (10)
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
279if (retry.TrySetResult(task.Result)) {
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (1)
1155if (!next.Completion.TrySetResult(connection)) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
2211source.TrySetResult(null); // this is set only on the last call of async copy. But may not be set if everything runs synchronously.
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
2228globalCompletion.TrySetResult(tsk.Result); 2282globalCompletion.TrySetResult(retryTsk.Result);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
4670source.TrySetResult(task.Result);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (4)
2191_networkPacketTaskSource.TrySetResult(null); 2503ExecutionContext.Run(_executionContext, (state) => source.TrySetResult(null), null); 2506source.TrySetResult(null); 2621completionSource.TrySetResult(null);
System.ServiceModel (2)
System\ServiceModel\Channels\HttpPipeline.cs (1)
752this.channelModelIntegrationHandlerTask.TrySetResult(httpResponseMessage);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
302tcsObj.TrySetResult(antecedent.Result);
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpContext.cs (1)
147this.webSocketWaitingTask.TrySetResult(null);
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\DiscoveryClient.cs (1)
1427this.taskCompletionSource.TrySetResult(result);
System.ServiceModel.Internals (2)
System\Runtime\TaskExtensions.cs (2)
42tcs.TrySetResult(t.Result); 84tcs.TrySetResult(null);
System.Web (9)
AspNetSynchronizationContextBase.cs (1)
55tcs.TrySetResult(null);
Hosting\ApplicationManager.cs (2)
666tcs.TrySetResult(null); 670tcs.TrySetResult(new ApplicationResumeStateContainer(hostEnv, state));
Util\CountdownTask.cs (1)
40bool success = _tcs.TrySetResult(null);
Util\SynchronizationHelper.cs (2)
97tcs.TrySetResult(null); 192tcs.TrySetResult(t);
WebSockets\WebSocketPipe.cs (3)
49tcs.TrySetResult(null); // regular completion 92tcs.TrySetResult(null); // regular completion 145tcs.TrySetResult(new WebSocketReceiveResult(