private void m_History_SnapshotReady(object sender, SnapshotReadyEventArgs e) { //new HistorySnapshot(e); ICollection<Agent> newAgents = m_AgentRegistry.Handle(e.PID, e.Events); if (newAgents.Count > 0) { foreach (Agent agent in newAgents) { Log.Info("Агент {0} успешно обучен", agent.Name); m_AgentStorage.SaveAgent(agent.Name, agent); Log.Info("Агент сохранен: {0}", agent.Name); m_AgentRegistry.StopLearning(agent.Name); } } }
private void GlobalHistory_SnapshotReady(object sender, SnapshotReadyEventArgs e) { string processName = GetProcessNameById(e.PID); m_Saver.Save(new HistorySnapshot(e), DateTime.Now); }
void ProcessHistory_SnapshotReady(object sender, SnapshotReadyEventArgs e) { if (SnapshotReady != null) SnapshotReady(sender, e); }
public HistorySnapshot(SnapshotReadyEventArgs args) : this() { Events = args.Events; PID = args.PID; }