Hello,
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.");
s.Jobs.Run(j.Id);
System.Threading.Thread.Sleep(1000); // job will only run when we do a delay before the disconnect
s.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?