public void SetAsUnavailable() { StoppedAt = DateTime.UtcNow; Status = TaskResultEnum.Unavailable; }
public void SetAsDone() { StoppedAt = DateTime.UtcNow; Status = TaskResultEnum.Done; }
public void SetAsFailed() { StoppedAt = DateTime.UtcNow; Status = TaskResultEnum.Error; }
public TaskResult() { StartedAt = DateTime.UtcNow; Status = TaskResultEnum.None; }