virtual protected void OnHighLoad(MonitoringServiceMessage <float> message)
        {
            var handler = Volatile.Read(ref NewData);

            if (handler != null)
            {
                handler(this, message);
            }
        }
Exemplo n.º 2
0
        virtual protected void OnNewProcessesList(MonitoringServiceMessage <IEnumerable <ProcessInformation> > message)
        {
            var handler = Volatile.Read(ref NewData);

            if (handler != null)
            {
                handler(this, message);
            }
        }
 private void ProcessService_NewData(object sender, MonitoringServiceMessage <IEnumerable <ProcessInformation> > e)
 {
     OnNewBroadcastMessage(JsonHelper.GetJsonMessage(e.MessageType, e.Data));
 }
 private void CpuService_NewData(object sender, MonitoringServiceMessage <float> e)
 {
     OnNewBroadcastMessage(JsonHelper.GetJsonMessage(e.MessageType, e.Data));
 }