Ejemplo n.º 1
0
 public void ProcessMonitorConfig(IStressDataProvider provider)
 {
     _hubDataReceiver = new HubReceiver(provider);
     BatchJobId       = provider.BatchJobId;
     _hubDataReceiver.StartReceive();
     localwatch = Stopwatch.StartNew();
     StartCollecting();
     IsSwitchingEnabled(true);
     EnablePortalBtn();
 }
Ejemplo n.º 2
0
 void ProcessMonitorConfig(IStressDataProvider provider)
 {
     InitBindingData();
     _hubDataReceiver = new HubReceiver(provider);
     _hubDataReceiver.SetConsumerGroup(_consumerGroupName);
     BatchJobId = provider.BatchJobId;
     _hubDataReceiver.StartReceive();
     localwatch = Stopwatch.StartNew();
     StartCollecting();
     Messenger.Default.Send($"Monitoring started, please switch to monitor tab", "RunningLog");
     IsSwitchingEnabled(true);
     EnablePortalBtn();
 }
Ejemplo n.º 3
0
 void StartCollecting()
 {
     _hubDataReceiver.StartReceive();
     ShadeVisibility           = Visibility.Hidden;
     RefreshBtnEnabled         = false;
     _refreshTaskTimer.Enabled = true;
     _refreshDataTimer.Enabled = true;
     _firstDataArriveTime      = DateTime.Now;
     _messageLineBuffer        = new List <MonitorDataLine>();
     _deviceLineBuffer         = new List <MonitorDataLine>();
     _messageNumberBuffer      = new List <double>();
     _deviceNumberBuffer       = new List <double>();
     DeviceLines          = new ObservableCollection <MonitorDataLine>();
     MessageLines         = new ObservableCollection <MonitorDataLine>();
     DeviceRealTimeNumber = 0; MessageRealTimeNumber = 0;
 }
Ejemplo n.º 4
0
 void StartCollecting()
 {
     _hubDataReceiver.StartReceive();
     ShadeVisibility                   = Visibility.Hidden;
     RefreshBtnEnabled                 = false;
     _refreshTaskTimer.Enabled         = true;
     _refreshDataTimer.Enabled         = true;
     MessageSeriesCollection[0].Values = new ChartValues <double>()
     {
         0.0
     };
     DeviceSeriesCollection[0].Values = new ChartValues <double>()
     {
         0.0
     };
     DeviceRealTimeNumber = 0; MessageRealTimeNumber = 0;
     TaskTotalCount       = 0; TaskCompleteCount = 0; TaskActiveCount = 0; TaskRunningCount = 0;
 }