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