Exemple #1
0
 // Token: 0x060005D2 RID: 1490 RVA: 0x00022D14 File Offset: 0x00020F14
 internal void ProcessIndications(IEnumerable <EnhancedNodeStatusIndicator.IndicationInfo> indications)
 {
     foreach (EnhancedNodeStatusIndicator.IndicationInfo indicationInfo in indications)
     {
         try
         {
             EnhancedNodeStatusIndicator.NodeStatusIndication nodeStatusIndication = (EnhancedNodeStatusIndicator.NodeStatusIndication)OrionSerializationHelper.FromJSON(indicationInfo.Data, typeof(EnhancedNodeStatusIndicator.NodeStatusIndication));
             PropertyBag propertyBag = new PropertyBag();
             propertyBag["PreviousStatus"] = nodeStatusIndication.PreviousStatus;
             PropertyBag propertyBag2 = new PropertyBag();
             propertyBag2["NodeID"]             = nodeStatusIndication.NodeID;
             propertyBag2["Status"]             = nodeStatusIndication.Status;
             propertyBag2["InstanceType"]       = "Orion.Nodes";
             propertyBag2["PreviousProperties"] = propertyBag;
             this.ip.ReportIndication(IndicationHelper.GetIndicationType(2), IndicationHelper.GetIndicationProperties(), propertyBag2);
             this.DeleteIndicationFromDB(indicationInfo);
             EnhancedNodeStatusIndicator.log.Debug("Enhanced node status indication processed " + string.Format("(N:{0} [{1}]->[{2}])", nodeStatusIndication.NodeID, nodeStatusIndication.PreviousStatus, nodeStatusIndication.Status));
         }
         catch (Exception ex)
         {
             EnhancedNodeStatusIndicator.log.Error("Indication processing failed", ex);
         }
     }
 }
Exemple #2
0
 internal void ProcessIndications(
     IEnumerable <EnhancedNodeStatusIndicator.IndicationInfo> indications)
 {
     foreach (EnhancedNodeStatusIndicator.IndicationInfo indication in indications)
     {
         try
         {
             EnhancedNodeStatusIndicator.NodeStatusIndication statusIndication = (EnhancedNodeStatusIndicator.NodeStatusIndication)OrionSerializationHelper.FromJSON(indication.Data, typeof(EnhancedNodeStatusIndicator.NodeStatusIndication));
             PropertyBag propertyBag1 = new PropertyBag();
             ((Dictionary <string, object>)propertyBag1)["PreviousStatus"] = (object)statusIndication.PreviousStatus;
             PropertyBag propertyBag2 = new PropertyBag();
             ((Dictionary <string, object>)propertyBag2)["NodeID"]             = (object)statusIndication.NodeID;
             ((Dictionary <string, object>)propertyBag2)["Status"]             = (object)statusIndication.Status;
             ((Dictionary <string, object>)propertyBag2)["InstanceType"]       = (object)"Orion.Nodes";
             ((Dictionary <string, object>)propertyBag2)["PreviousProperties"] = (object)propertyBag1;
             this.ip.ReportIndication(IndicationHelper.GetIndicationType((IndicationType)2), IndicationHelper.GetIndicationProperties(), propertyBag2);
             this.DeleteIndicationFromDB(indication);
             EnhancedNodeStatusIndicator.log.Debug((object)("Enhanced node status indication processed " + string.Format("(N:{0} [{1}]->[{2}])", (object)statusIndication.NodeID, (object)statusIndication.PreviousStatus, (object)statusIndication.Status)));
         }
         catch (Exception ex)
         {
             EnhancedNodeStatusIndicator.log.Error((object)"Indication processing failed", ex);
         }
     }
 }