mannsingh3
asked on
Background worker
I have a background worker in my code, what I am trying to do is check at a scheduled time if the background worker is dead restart it
Why would your background worker be "dead"?...what are you doing in it?
Do you have the code that runs at scheduled time? If you have that all you need is to check IsBusy flag on the bg worker.
If you need to restart the worker under specific conditions (e.g. stopped prematurely or threw exception), then you will need a lot more work.
If you need to restart the worker under specific conditions (e.g. stopped prematurely or threw exception), then you will need a lot more work.
ASKER
can you shed some light what extra needs to be done if background worker needs to be started if stopped prematurely or threw an exception.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.