Link to home
Start Free TrialLog in
Avatar of mannsingh3
mannsingh3Flag for Afghanistan

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
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

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.
Avatar of mannsingh3

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
Avatar of jhshukla
jhshukla
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial