예제 #1
0
        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();
        }
예제 #2
0
        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();
        }