Most of the samples associated with the Azure WebJobs SDK have startup code that looks like this:
static void Main()
{
JobHost h = new JobHost();
h.RunAndBlock();
}
However you can also kick off a WebJob without creating a JobHost
object like this:
static void Main()
{
// Do something...
}
In what scenarios is the JobHost
necessary?