Ejemplo n.º 1
0
		public void SetUp()
		{
			this.srv = new Server();
			
			this.srv["/"] = new Node("node_1");
			this.srv["/node_1"] = new Node("node_2");
			Configurator conf = new Configurator("test_config.json", this.srv);
			conf.Save();
		}
Ejemplo n.º 2
0
        public void SetUp()
        {
            this.srv = new Server();

            this.srv["/"] = new Node("node_1");
            this.srv["/node_1"] = new Node("node_2");
            Configurator conf = new Configurator("test_config.json", this.srv);
            conf.Save();
        }
Ejemplo n.º 3
0
 private void SaveConfig(object sender, System.Timers.ElapsedEventArgs e)
 {
     if (queueToSave.Count > 0)
     {
         while (queueToSave.Count > 0)
         {
             Console.WriteLine("Config changes in node:{0}",
                               queueToSave.Dequeue().FullName
                               );
         }
         config.Save();
         Console.WriteLine("Save config");
     }
 }