Esempio n. 1
0
        public override string ToString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            if (this.ProcessLoadedInMemory)
            {
                stringBuilder.AppendFormat("{0}:{1}; ", "ProcessId", this.ProcessId);
                stringBuilder.AppendFormat("{0}:{1}; ", "ThreadCount", this.ThreadCount);
                stringBuilder.AppendFormat("{0}:{1}; ", "ServerName", this.ServerName);
                stringBuilder.AppendFormat("{0}:{1}; ", "ProcessUpTime", this.ProcessUpTime);
                stringBuilder.AppendFormat("{0}:{1}; ", "Timestamp", this.Timestamp);
                stringBuilder.AppendFormat("{0}:{1}; ", "RecentGracefulDegradationExecutionTime", this.RecentGracefulDegradationExecutionTime);
                stringBuilder.AppendLine();
                using (Dictionary <Guid, DiagnosticInfo.FeedingControllerDiagnosticInfo> .ValueCollection.Enumerator enumerator = this.perMdbFeedingController.Values.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        DiagnosticInfo.FeedingControllerDiagnosticInfo feedingControllerDiagnosticInfo = enumerator.Current;
                        stringBuilder.AppendLine(feedingControllerDiagnosticInfo.ToString());
                    }
                    goto IL_108;
                }
            }
            stringBuilder.AppendLine("ProcessLoadedInMemory: False");
IL_108:
            return(stringBuilder.ToString());
        }
Esempio n. 2
0
 public DiagnosticInfo.FeedingControllerDiagnosticInfo GetFeedingControllerDiagnosticInfo(Guid mdbGuid)
 {
     DiagnosticInfo.FeedingControllerDiagnosticInfo result = null;
     if (this.ProcessLoadedInMemory)
     {
         this.perMdbFeedingController.TryGetValue(mdbGuid, out result);
     }
     return(result);
 }
Esempio n. 3
0
        public long LastEvent(Guid mdbGuid)
        {
            long result = 0L;

            if (this.ProcessLoadedInMemory)
            {
                DiagnosticInfo.FeedingControllerDiagnosticInfo feedingControllerDiagnosticInfo = null;
                if (this.perMdbFeedingController.TryGetValue(mdbGuid, out feedingControllerDiagnosticInfo))
                {
                    result = feedingControllerDiagnosticInfo.NotificationFeederLastEvent;
                }
            }
            return(result);
        }
Esempio n. 4
0
        private void ParseSearchFeedingControllerInfo(XmlReader xmlReader)
        {
            int depth = xmlReader.Depth;

            do
            {
                if (xmlReader.Name == "SearchFeedingController")
                {
                    DiagnosticInfo.FeedingControllerDiagnosticInfo feedingControllerDiagnosticInfo = new DiagnosticInfo.FeedingControllerDiagnosticInfo(xmlReader);
                    if (feedingControllerDiagnosticInfo.MdbGuid != Guid.Empty)
                    {
                        this.perMdbFeedingController[feedingControllerDiagnosticInfo.MdbGuid] = feedingControllerDiagnosticInfo;
                    }
                }
                else
                {
                    xmlReader.Read();
                }
            }while (xmlReader.Depth >= depth);
        }