- Create two folders called AsyncDestination and AsyncSource:
- To the AsyncSource folder, add a couple of large files to process:
- 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):
- In the code above the constructor, add the CancellationTokenSource object and the elapsedTime variable ...