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; }
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)); }
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)); }