Add unresponsive status
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace LeafWeb.Core.Entities
|
||||
Exception = 5,
|
||||
CancelPending = 6,
|
||||
Cancelling = 7,
|
||||
Cancelled = 8
|
||||
Cancelled = 8,
|
||||
Unresponsive = 9
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user