I have an application that searches through log files for a string match. Its not uncommon that I'm searching through hundreds of files at a time, and sometimes I want to pause or stop the search.
How can I implement a pause or stop function that pauses/stops the 'Search' method, for example?