O'Reilly logo

C# 7 and .NET Core Cookbook by Dirk Strauss

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. Create two folders called AsyncDestination and AsyncSource:
  1. To the AsyncSource folder, add a couple of large files to process:
  1. Create a new WinForms application and add a forms times control, a button, and a label called lblTimer to the form. Call the timer asyncTimer and set its Interval to 1000 milliseconds (1 second):
  1. In the code above the constructor, add the CancellationTokenSource object and the elapsedTime variable ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required