public void Handle(MonitoringEvent evt) { var heartbeatEvent = evt as HeartbeatEvent; if (heartbeatEvent != null) { _repository.SaveOrUpdate(heartbeatEvent); // notify the clients (signalr) MonitoringHub.Heartbeat(heartbeatEvent); } }
public void Handle(MonitoringEvent evt) { var logEvent = evt as LogEvent; if (logEvent != null) { _repository.SaveOrUpdate(logEvent); // notify the clients (signalr) MonitoringHub.Log(logEvent); } }