Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
There are lots of things that take a long time - a politician's apology, dance recitals, and sometimes C# operations. if you don’t want your UI to freeze during these operations, it is important to make them asynchronous.
Option 1: The Event Pattern
One of the most common approaches is to create a void method that releases control and raises a Completed event when it is finished. Here’s how you implement that…