-
Notifications
You must be signed in to change notification settings - Fork 0
/
WatchDog.cs
34 lines (22 loc) · 810 Bytes
/
WatchDog.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// ---------------------------------------------------------------
// Copyright (c) Raúl Lorenzo Boullosa
// Licensed under the MIT License.
// See License.txt in the project root for license information.
// ---------------------------------------------------------------
using System;
namespace TheWatchDog.Models
{
public class WatchDog
{
public Guid Id { get; init; }
public int ThreadId { get; set; }
public WatchDogStatus Status { get; set; }
public object Result { get; set; }
public Exception Exception { get; set; }
public int ProgressPercentage { get; set; }
public object UserState { get; set; }
public Func<bool> IsBusy { get; init; }
public Func<bool> IsRequestedForCancellation { get; init; }
public Action<int, object> NotifyProgress { get; init; }
}
}