/// <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); }
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); } } }