Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void StartWatchDog()
- {
- if (watchDog?.Status != TaskStatus.Running)
- {
- watchDog = Task.Run(Watch); // <-- this line yields the error
- }
- }
- private static void Watch()
- {
- //... some code
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement