27 references to TrySetCanceled
mscorlib (1)
system\threading\Tasks\TaskCompletionSource.cs (1)
369
if(!
TrySetCanceled
())
System (9)
net\System\Net\mail\SmtpClient.cs (1)
758
else if (e.Cancelled) tcs.
TrySetCanceled
();
net\System\Net\NetworkInformation\ping.cs (1)
572
else if (e.Cancelled) tcs.
TrySetCanceled
();
net\System\Net\webclient.cs (1)
2917
else if (e.Cancelled) tcs.
TrySetCanceled
();
net\System\Net\WebSockets\WebSocketConnectionStream.cs (2)
847
readTaskCompletionSourceSnapshot.
TrySetCanceled
();
854
writeTaskCompletionSourceSnapshot.
TrySetCanceled
();
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (4)
672
m_ReadTaskCompletionSource.
TrySetCanceled
();
677
m_WriteTaskCompletionSource.
TrySetCanceled
();
735
readTaskCompletionSourceSnapshot.
TrySetCanceled
();
742
writeTaskCompletionSourceSnapshot.
TrySetCanceled
();
System.Data (12)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
2583
regReconnectCancel = cts.Register(() => cancellableReconnectTS.
TrySetCanceled
());
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
1007
if (reconnectCompletionSource.
TrySetCanceled
()) {
2216
globalCompletion.
TrySetCanceled
();
2279
globalCompletion.
TrySetCanceled
();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1377
completion.Item1.
TrySetCanceled
();
1434
registration = cancellationToken.Register(() => completion.
TrySetCanceled
());
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
4667
source.
TrySetCanceled
();
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
83
completion.
TrySetCanceled
();
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (4)
2047
source.
TrySetCanceled
();
2062
source.
TrySetCanceled
();
2099
source.
TrySetCanceled
();
2552
source.
TrySetCanceled
();
System.ServiceModel (1)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
298
tcsObj.
TrySetCanceled
();
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\DiscoveryClient.cs (1)
1419
this.taskCompletionSource.
TrySetCanceled
();
System.ServiceModel.Internals (2)
System\Runtime\TaskExtensions.cs (2)
38
tcs.
TrySetCanceled
();
80
tcs.
TrySetCanceled
();
System.Web (1)
Util\SynchronizationHelper.cs (1)
189
tcs.
TrySetCanceled
();