Пример #1
0
		private void ExecutionCompleted(Network network)
		{
			if (network != null)
			{
				network.GeneratingPingTcpStats();
				Debug.WriteLine("[DecisionMaker]:  -> Ping max: " + network.PingMaxTCP + ", med: " + network.PingMedTCP + ", min: " + network.PingMinTCP);

				MposFramework.Instance.EndpointController.RemoteAdvantage = network.PingMedTCP < PingTolerance;

				//List<Network> lists = profileDao.Last15Results();
				//System.Diagnostics.Debug.WriteLine("[DEBUG]: Network Results!!!");
				//foreach (Network net in lists)
				//{
				//	System.Diagnostics.Debug.WriteLine(net);
				//}
			}
			else
			{
				Server = null;
				MposFramework.Instance.EndpointController.RemoteAdvantage = false;
				Debug.WriteLine("[DecisionMaker]: Any problem in ping test!");
			}
		}
Пример #2
0
		public ProfileResult(Device device, Network network)
		{
			Device = device;
			Network = network;
		}
Пример #3
0
		public void Add(Network network)
		{
			network.PingArraysToString();
			tableNetwork.InsertOnSubmit(network);
			SubmitChanges();//commit!
		}
Пример #4
0
		private void PersistNetworkResults(Network network)
		{
			if (network != null)
			{
				profileDao.Add(network);
				FinishProfile(network);
			}
		}