コード例 #1
0
ファイル: DecisionMaker.cs プロジェクト: sergiosilvajr/mpos
		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
ファイル: ProfileResult.cs プロジェクト: sergiosilvajr/mpos
		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);
			}
		}