public async void Handle(ProcessStatus message) { if (message.InitModule && message.IsName(_config.DependencyProcess.Name) && message.Ready) { await ReadStatistic(); } }
public void Handle(ProcessStatus procesStatus) { var requiredProcName = _config.DependencyProcess.Name; if (!procesStatus.IsName(requiredProcName)) { return; } if (procesStatus.Status == MessageStatus.Info && !procesStatus.Ready) { _lockEvent.Reset(); //pause } if (procesStatus.Status == MessageStatus.Info && procesStatus.Ready) { _lockEvent.Set(); //restore } }