示例#1
0
 public ViewType(IPushData view, object[] viewParams, DataType dataType, PerformanceCounterData performanceCounterData, string instanceName)
 {
     this.view                   = view;
     this.viewParams             = viewParams;
     this.dataType               = dataType;
     this.performanceCounterData = performanceCounterData;
     this.instanceName           = instanceName;
 }
示例#2
0
 public void SetDataToView(DataType type, IPushData view, string instanceName="_Total",object[] viewParams=null)
 {
     PerformanceCounterData pcd=this.CreatePercentCounterData(type, instanceName);
     if (!this.views.ContainsKey(view))
     {
         this.views.Add(view, new List<ViewType>());
     }
     this.views[view].Add(new ViewType(view, viewParams, type, pcd, instanceName));
 }
示例#3
0
        public void SetDataToView(DataType type, IPushData view, string instanceName = "_Total", object[] viewParams = null)
        {
            PerformanceCounterData pcd = this.CreatePercentCounterData(type, instanceName);

            if (!this.views.ContainsKey(view))
            {
                this.views.Add(view, new List <ViewType>());
            }
            this.views[view].Add(new ViewType(view, viewParams, type, pcd, instanceName));
        }
示例#4
0
 public ViewType(IPushData view, object[] viewParams, DataType dataType, PerformanceCounterData performanceCounterData, string instanceName)
 {
     this.view = view;
     this.viewParams = viewParams;
     this.dataType = dataType;
     this.performanceCounterData = performanceCounterData;
     this.instanceName = instanceName;
 }