I have a requirement where in a long running process needs to be triggered from an ASP.Net page. So I decided on using an architecture where in the ASP.Net stores the required task into database and Windows service (will be pooling every 10 sec) will pick the database information and start the process. With this architecture, how can I accomplish stopping the task initially requested by ASP.Net webpage?. Example:
- User clicks the START button on ASP.Net page and is redirected to screen which shows the stats of the request. The user will be provided with a button as CANCEL if he wants to cancel the on going task.
- ASP.Net page updated the database table with appropriate data.
- The windows service pools the table and starts the long running process.
- Before the windows service completes the task, the user decided to cancel the ongoing task. How to can I make this happen?. Any idea is greatly