Esempio n. 1
0
        /// <summary>
        /// Overloaded Role Entry Point Method
        /// </summary>
        public override bool OnStart()
        {
            var config = new Configuration()
            {
                ConnectionString = "UseDevelopmentStorage=true;",
                TableName = "table",
                QueueName = "queue",
                DynamicQueueName = "batchsizing",
                ScalableQueueName = "scalequeue",
                ContainerName = "container",
                FactoryQueueName = "super",
            };

            return this.manager.OnStart(config);
        }
Esempio n. 2
0
        public static void Main()
        {
            var manager = new RoleTaskManager<Configuration>(new Factory());
            var config = new Configuration()
            {
                ConnectionString = "UseDevelopmentStorage=true;",
                TableName = "table",
                QueueName = "queue",
                ContainerName = "container",
            };

            if (manager.OnStart(config))
            {
                manager.Run();

                while (true)
                {
                    Thread.Sleep(10000);
                }
            }
        }