protected void Application_Start(object sender, EventArgs e)
 {
     var connectionString = ConfigurationManager.ConnectionStrings["Storage"].ConnectionString;
     var storageAccount = CloudStorageAccount.Parse(connectionString);
     BackgroundWorker = new BackgroundWorkerService(storageAccount);
     Task.Run(() => BackgroundWorker.DoWork("Application_Start"));
 }
 static void Main()
 {
     Console.WriteLine("Starting web job");
     var connectionString = ConfigurationManager.ConnectionStrings["Storage"].ConnectionString;
     var storageAccount = CloudStorageAccount.Parse(connectionString);
     var backgroundWorker = new BackgroundWorkerService(storageAccount);
     Task.Run(() => backgroundWorker.DoWork("WebJob")).Wait();
 }