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