コード例 #1
0
        public void Handle(MonitoringEvent evt)
        {
            var heartbeatEvent = evt as HeartbeatEvent;

            if (heartbeatEvent != null)
            {
                _repository.SaveOrUpdate(heartbeatEvent);
                // notify the clients (signalr)
                MonitoringHub.Heartbeat(heartbeatEvent);
            }
        }
コード例 #2
0
        public void Handle(MonitoringEvent evt)
        {
            var logEvent = evt as LogEvent;

            if (logEvent != null)
            {
                _repository.SaveOrUpdate(logEvent);
                // notify the clients (signalr)
                MonitoringHub.Log(logEvent);
            }
        }