Exemple #1
0
        // Token: 0x06002463 RID: 9315 RVA: 0x000AAA24 File Offset: 0x000A8C24
        internal NetworkManagerPerfmonInstance(string instanceName, NetworkManagerPerfmonInstance autoUpdateTotalInstance) : base(instanceName, "MSExchange Network Manager")
        {
            bool flag = false;
            List <ExPerformanceCounter> list = new List <ExPerformanceCounter>();

            try
            {
                this.LogCopyThruputReceived = new ExPerformanceCounter(base.CategoryName, "Log Copy KB Received/Sec", instanceName, (autoUpdateTotalInstance == null) ? null : autoUpdateTotalInstance.LogCopyThruputReceived, new ExPerformanceCounter[0]);
                list.Add(this.LogCopyThruputReceived);
                this.SeederThruputReceived = new ExPerformanceCounter(base.CategoryName, "Seeder KB Received/Sec", instanceName, (autoUpdateTotalInstance == null) ? null : autoUpdateTotalInstance.SeederThruputReceived, new ExPerformanceCounter[0]);
                list.Add(this.SeederThruputReceived);
                this.TotalCompressedLogBytesReceived = new ExPerformanceCounter(base.CategoryName, "Total Compressed Log Bytes Received", instanceName, (autoUpdateTotalInstance == null) ? null : autoUpdateTotalInstance.TotalCompressedLogBytesReceived, new ExPerformanceCounter[0]);
                list.Add(this.TotalCompressedLogBytesReceived);
                this.TotalLogBytesDecompressed = new ExPerformanceCounter(base.CategoryName, "Total Log Bytes Decompressed", instanceName, (autoUpdateTotalInstance == null) ? null : autoUpdateTotalInstance.TotalLogBytesDecompressed, new ExPerformanceCounter[0]);
                list.Add(this.TotalLogBytesDecompressed);
                this.TotalCompressedSeedingBytesReceived = new ExPerformanceCounter(base.CategoryName, "Total Compressed Seeding Bytes Received", instanceName, (autoUpdateTotalInstance == null) ? null : autoUpdateTotalInstance.TotalCompressedSeedingBytesReceived, new ExPerformanceCounter[0]);
                list.Add(this.TotalCompressedSeedingBytesReceived);
                this.TotalSeedingBytesDecompressed = new ExPerformanceCounter(base.CategoryName, "Total Seeding Bytes Decompressed", instanceName, (autoUpdateTotalInstance == null) ? null : autoUpdateTotalInstance.TotalSeedingBytesDecompressed, new ExPerformanceCounter[0]);
                list.Add(this.TotalSeedingBytesDecompressed);
                long num = this.LogCopyThruputReceived.RawValue;
                num += 1L;
                flag = true;
            }
            finally
            {
                if (!flag)
                {
                    foreach (ExPerformanceCounter exPerformanceCounter in list)
                    {
                        exPerformanceCounter.Close();
                    }
                }
            }
            this.counters = list.ToArray();
        }
Exemple #2
0
 // Token: 0x06001778 RID: 6008 RVA: 0x000609A0 File Offset: 0x0005EBA0
 internal void SetupPerfmon()
 {
     foreach (KeyValuePair <string, ExchangeNetwork> keyValuePair in this.Networks)
     {
         ExchangeNetwork value = keyValuePair.Value;
         if (value.ReplicationEnabled && !value.IgnoreNetwork && value.Subnets.Count > 0)
         {
             NetworkManagerPerfmonInstance  instance     = NetworkManagerPerfmon.GetInstance(value.Name);
             ExchangeNetworkPerfmonCounters perfCounters = new ExchangeNetworkPerfmonCounters(instance);
             value.PerfCounters = perfCounters;
         }
     }
 }
Exemple #3
0
 // Token: 0x06001744 RID: 5956 RVA: 0x0006015A File Offset: 0x0005E35A
 internal ExchangeNetworkPerfmonCounters(NetworkManagerPerfmonInstance instance)
 {
     this.m_instance = instance;
 }