Add unresponsive status

This commit is contained in:
2018-09-12 21:23:47 -04:00
parent 91d9efa7f7
commit 62e4e156ae
13 changed files with 106 additions and 61 deletions
+5 -2
View File
@@ -64,16 +64,19 @@ namespace LeafWeb.Core.Entities
public bool IsCancelPending => CurrentStatus == LeafInputStatusType.CancelPending;
public bool IsCancelling => CurrentStatus == LeafInputStatusType.Cancelling;
public bool IsCancelled => CurrentStatus == LeafInputStatusType.Cancelled;
public bool IsUnresponsive => CurrentStatus == LeafInputStatusType.Unresponsive;
public bool IsInProgress => IsStarting
|| IsRunning
|| IsFinishing
|| IsCancelPending
|| IsCancelling;
|| IsCancelling
|| IsUnresponsive;
public bool IsCancellable =>
IsRunning
|| IsPending;
|| IsPending
|| IsUnresponsive;
public bool IsDeletable => !IsInProgress;
public bool IsAtEndState => IsComplete || IsException || IsCancelled;
+2 -1
View File
@@ -10,6 +10,7 @@ namespace LeafWeb.Core.Entities
Exception = 5,
CancelPending = 6,
Cancelling = 7,
Cancelled = 8
Cancelled = 8,
Unresponsive = 9
}
}