public static void Main(string[] args) { DataDirectory.ConfigureDataDirectory(); var config = new JobHostConfiguration(); config.DashboardConnectionString = config.StorageConnectionString = AzureConfiguration.GetStorageConnectionString(); config.Queues.BatchSize = 8; config.Queues.MaxDequeueCount = 10; config.Queues.MaxPollingInterval = TimeSpan.FromSeconds(10); var host = new JobHost(config); host.RunAndBlock(); }
public static void Main(string[] args) { // This is just a sanity check to ensure we run as 64 bit when processing images. Console.WriteLine("Thumbnails WebJob running as {0} bit process.", Environment.Is64BitProcess ? "64" : "32"); Trace.TraceInformation("Thumbnails WebJob running as {0} bit process.", Environment.Is64BitProcess ? "64" : "32"); DataDirectory.ConfigureDataDirectory(); var config = new JobHostConfiguration(); config.DashboardConnectionString = config.StorageConnectionString = AzureConfiguration.GetStorageConnectionString(); config.Queues.BatchSize = 8; config.Queues.MaxDequeueCount = 3; config.Queues.MaxPollingInterval = TimeSpan.FromSeconds(2); var host = new JobHost(config); host.RunAndBlock(); }