Beispiel #1
0
 public async Task StartAsync(CancellationToken cancellationToken)
 {
     while (true)
     {
         await Task.Delay(3000, cancellationToken).ContinueWith(t =>
         {
             _fakeDb.IncreaseValue();;
         }, cancellationToken);
     }
 }