public void ProcessMonitorConfig(IStressDataProvider provider) { _hubDataReceiver = new HubReceiver(provider); BatchJobId = provider.BatchJobId; _hubDataReceiver.StartReceive(); localwatch = Stopwatch.StartNew(); StartCollecting(); IsSwitchingEnabled(true); EnablePortalBtn(); }
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(); }