How to implement background process
How to run a background process in C# ? My requirement is to trigger a process from application which will run more than 30 mins . I have to show the updated status of process on screen every now and then. Could anyone suggest me a option in implementing this ? I have used WCF service in app.
My options are:
1. Use a backgroundworker process and perform the long running operation, mean while use a loading image to display work is in progress. Since you are using wcf service to get response back, it is difficult to show actual work progress.
2. Use ThreadPool.QueueUserWorkItem and delegate the long running process to threadpool threads. Then using Dispatcher.BeginInvoke update the UI.