Guest User

Untitled

a guest
Jul 17th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. InstanceTask = Task.Run(() => ControllerAsync());
  2.  
  3. private async Task ControllerAsync()
  4. {
  5. int c = 0;
  6. while (true)
  7. {
  8. DataAccessManager.InsertEvent("Inserting " + c);
  9. c++;
  10. Task.Delay(500).Wait();
  11. }
  12. }
Add Comment
Please, Sign In to add comment