What's the correct way to run a job and then disconnect? Here's a snippet of my code:
static void Jobs_EventOnJobAdded(JobClass j)
//throw new Exception("The method or operation is not implemented.");
System.Threading.Thread.Sleep(1000); // job will only run when we do a delay before the disconnect
If I take out the delay, the job never runs, do the delay and the job runs. Is there some other event I'm suppose to
wait for before doing the disconnect?