示例#1
0
 public DashboardCounters()
 {
     Hosts                       = new SiloDetails[0];
     SimpleGrainStats            = new SimpleGrainStatisticCounter[0];
     TotalActivationCountHistory = new Queue <int>();
     TotalActiveHostCountHistory = new Queue <int>();
     foreach (var x in Enumerable.Range(1, Dashboard.HistoryLength))
     {
         this.TotalActivationCountHistory.Enqueue(0);
         this.TotalActiveHostCountHistory.Enqueue(0);
     }
 }
 public DashboardCounters()
 {
     Hosts = new SiloDetails[0];
     SimpleGrainStats = new SimpleGrainStatisticCounter[0];
     TotalActivationCountHistory = new Queue<int>();
     TotalActiveHostCountHistory = new Queue<int>();
     foreach (var x in Enumerable.Range(1, Dashboard.HistoryLength))
     {
         this.TotalActivationCountHistory.Enqueue(0);
         this.TotalActiveHostCountHistory.Enqueue(0);
     }
 }