コード例 #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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: modulexcite/King.Service
        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);
                }
            }
        }