31 references to Status
mscorlib (21)
system\io\bufferedstream.cs (5)
589
if (semaphoreLockTask.
Status
== TaskStatus.RanToCompletion) {
654
Contract.Assert(t == null || t.
Status
== TaskStatus.RanToCompletion);
690
if (semaphoreLockTask.
Status
== TaskStatus.RanToCompletion) {
1017
if (semaphoreLockTask.
Status
== TaskStatus.RanToCompletion) {
1101
if (semaphoreLockTask.
Status
== TaskStatus.RanToCompletion) {
system\io\memorystream.cs (1)
395
Contract.Assert(t == null || t.
Status
== TaskStatus.RanToCompletion,
system\io\stream.cs (1)
584
Contract.Assert(writeTask.
Status
== TaskStatus.RanToCompletion);
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
624
Contract.Requires(completedTask.
Status
== TaskStatus.RanToCompletion, "Expected a successfully completed task");
system\runtime\compilerservices\TaskAwaiter.cs (2)
163
Contract.Requires(task.
Status
!= TaskStatus.RanToCompletion, "Task should not be completed successfully.");
166
switch (task.
Status
)
system\threading\Tasks\Future.cs (3)
1661
public TResult Result { get { return m_task.
Status
== TaskStatus.RanToCompletion ? m_task.Result : default(TResult); } }
1666
public bool CancellationPending { get { return (m_task.
Status
== TaskStatus.WaitingToRun) && m_task.CancellationToken.IsCancellationRequested; } }
1667
public TaskStatus Status { get { return m_task.
Status
; } }
system\threading\Tasks\Task.cs (8)
137
/// information also accessible through the <see cref="
Status
"/> property. The m_action System.Object
1737
/// If <see cref="IsFaulted"/> is true, the Task's <see cref="
Status
"/> will be equal to
5496
Contract.Assert(firstCompleted.
Status
== TaskStatus.RanToCompletion);
6400
Contract.Assert(task.
Status
== TaskStatus.RanToCompletion);
6718
public bool CancellationPending { get { return (m_task.
Status
== TaskStatus.WaitingToRun) && m_task.CancellationToken.IsCancellationRequested; } }
6719
public TaskStatus Status { get { return m_task.
Status
; } }
7244
switch (task.
Status
)
7275
switch (task.
Status
)
System.Data (7)
fx\src\data\System\Data\ProviderBase\DbConnectionClosed.cs (1)
125
Debug.Assert(retry.Task.
Status
== TaskStatus.RanToCompletion, "retry task must be completed successfully");
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
1005
if (t.
Status
== TaskStatus.RanToCompletion) {
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (2)
221
if ((t.
Status
== TaskStatus.RanToCompletion) && (CanRead))
225
else if (t.
Status
== TaskStatus.Faulted)
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (2)
189
if ((t.
Status
== TaskStatus.RanToCompletion) && (!IsClosed))
210
else if (t.
Status
== TaskStatus.Faulted)
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
10493
switch (task.
Status
) {
System.ServiceModel.Internals (3)
System\Runtime\TaskExtensions.cs (3)
20
if (task.
Status
== TaskStatus.Created)
62
if (task.
Status
== TaskStatus.Created)
193
return (task.
Status
== TaskStatus.RanToCompletion) ?