42 references to IsFaulted
mscorlib (16)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (4)
234
Contract.Requires(faultedTask != null && faultedTask.
IsFaulted
&& faultedTask.Exception.InnerExceptions.Count > 0,
370
if (!exclusiveTask.
IsFaulted
) m_exclusiveTaskScheduler.ExecuteTask(exclusiveTask);
419
if (!concurrentTask.
IsFaulted
) m_concurrentTaskScheduler.ExecuteTask(concurrentTask);
634
Contract.Assert(t.
IsFaulted
, "Task should be faulted due to the scheduler faulting it and throwing the exception.");
system\threading\Tasks\Task.cs (12)
1410
if (
IsFaulted
) e = GetExceptions(false);
1415
Contract.Assert((e == null) ||
IsFaulted
, "Task.Exception_get(): returning non-null value when not Faulted");
1737
/// If <see cref="
IsFaulted
"/> is true, the Task's <see cref="Status"/> will be equal to
2123
bool exceptionsAvailable =
IsFaulted
&& ExceptionRecorded;
2378
if (childTask.
IsFaulted
&& !childTask.IsExceptionObservedByParent)
2434
if (task.
IsFaulted
&& !task.IsExceptionObservedByParent)
2841
etwLog.TaskCompleted(previousTask.m_taskScheduler.Id, previousTask.Id, this.Id,
IsFaulted
);
2843
etwLog.TaskCompleted(TaskScheduler.Current.Id, 0, this.Id,
IsFaulted
);
5100
if (task.
IsFaulted
) exceptionSeen = true;
5119
if (task.
IsFaulted
) exceptionSeen = true;
6144
if (task.
IsFaulted
)
6389
if (task.
IsFaulted
)
System.Data (17)
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
275
} else if (task.
IsFaulted
) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
520
if (t.
IsFaulted
) {
763
if (t.
IsFaulted
) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (10)
1376
else if (completionTask.
IsFaulted
) {
1418
if (!isInternal && (!IsColumnEncryptionEnabled || !completionTask.
IsFaulted
)) {
2212
if (tsk.
IsFaulted
) {
2275
if (retryTsk.
IsFaulted
) {
2427
if (t.
IsFaulted
) {
2450
if (result.
IsFaulted
) {
2491
if (t.
IsFaulted
) {
2519
else if (executeTask.
IsFaulted
) {
2530
else if (readTask.
IsFaulted
) {
2595
if (t.
IsFaulted
) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1475
if (retryTask.
IsFaulted
) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
4576
if (retryTask.
IsFaulted
) {
4662
if (task.
IsFaulted
) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
8007
if (t.
IsFaulted
) {
System.ServiceModel (6)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3257
if (task.
IsFaulted
)
System\ServiceModel\Channels\HttpRequestContext.cs (1)
1126
if (acceptTask.
IsFaulted
)
System\ServiceModel\Channels\WebSocketHelper.cs (1)
327
if (task.
IsFaulted
)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (3)
101
if (invokeTask.
IsFaulted
)
119
if (task.
IsFaulted
)
292
if (antecedent.
IsFaulted
)
System.ServiceModel.Internals (2)
System\Runtime\TaskExtensions.cs (2)
30
if (t.
IsFaulted
)
72
if (t.
IsFaulted
)
System.Web (1)
Util\SynchronizationHelper.cs (1)
185
if (t.
IsFaulted
) {