Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active September 4, 2017 16:49
Show Gist options
  • Save justinyoo/2796a3f8b6ff1498eda4495ed157e9cd to your computer and use it in GitHub Desktop.
Save justinyoo/2796a3f8b6ff1498eda4495ed157e9cd to your computer and use it in GitHub Desktop.
Make Your Azure WebJobs Testable Again
public class Program
{
public static void Main()
{
// Initialise a configuration.
var config = new JobHostConfiguration();
if (config.IsDevelopment)
{
config.UseDevelopmentSettings();
}
// Initialise a job host.
var host = new JobHost(config);
// Run the job host.
host.RunAndBlock();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment