Beispiel #1
0
		public static void Start()
		{
			Watchers = new List<Watcher>();
			foreach (var gkDatabase in DescriptorsManager.GkDatabases)
			{
				if (GKManager.IsValidIpAddress(gkDatabase.RootDevice))
				{
					var watcher = new Watcher(gkDatabase);
					Watchers.Add(watcher);
					watcher.StartThread();
				}
			}
			TimeSynchronisationHelper.Start();
			LifeTimeWatcher.Start();
		}
Beispiel #2
0
		public static void Start()
		{
			Watchers = new List<Watcher>();
			foreach (var gkDatabase in DescriptorsManager.GkDatabases)
			{
				if (!XManager.IsValidIpAddress(gkDatabase.RootDevice))
				{
					continue;
				}
				var watcher = new Watcher(gkDatabase);
				watcher.StartThread();
				Watchers.Add(watcher);
			}
			ApplicationService.Closing += new System.ComponentModel.CancelEventHandler(ApplicationService_Closing);
			ApplicationService.Restarting += new Action(ApplicationService_Restarting);
			TimeSynchronisationHelper.Start();
			LifeTimeWatcher.Start();
		}