Пример #1
0
 public void SetAsUnavailable()
 {
     StoppedAt = DateTime.UtcNow;
     Status    = TaskResultEnum.Unavailable;
 }
Пример #2
0
 public void SetAsDone()
 {
     StoppedAt = DateTime.UtcNow;
     Status    = TaskResultEnum.Done;
 }
Пример #3
0
 public void SetAsFailed()
 {
     StoppedAt = DateTime.UtcNow;
     Status    = TaskResultEnum.Error;
 }
Пример #4
0
 public TaskResult()
 {
     StartedAt = DateTime.UtcNow;
     Status    = TaskResultEnum.None;
 }