Ejemplo n.º 1
0
        public static void Start()
        {
            AdhesiveFramework.Start();
            LocalLoggingService.Info("框架启动成功");
            StartService();
            LocalLoggingService.Info("WCF服务启动成功");
            var config = Configuration.GetConfig();
            var pp     = new GreneralPerformanceCollector(config.PagePerformance);

            pp.Start();
            collectors.Add(config.PagePerformance.Name, pp);
            //var wcp = new GreneralPerformanceCollector(config.WcfClientPerformance);
            //wcp.Start();
            //collectors.Add(config.WcfClientPerformance.Name, wcp);
            var wsp = new GreneralPerformanceCollector(config.WcfServerPerformance);

            wsp.Start();
            collectors.Add(config.WcfServerPerformance.Name, wsp);
            LocalLoggingService.Info("收集器启动成功");

            var ppg = new GeneralPerformanceAggregator(config.PagePerformance);

            ppg.Start();
            aggregators.Add(config.PagePerformance.Name, ppg);
            //var wcpg = new GeneralPerformanceAggregator(config.WcfClientPerformance);
            //wcpg.Start();
            //aggregators.Add(config.WcfClientPerformance.Name, wcpg);
            var wspg = new GeneralPerformanceAggregator(config.WcfServerPerformance);

            wspg.Start();
            aggregators.Add(config.WcfServerPerformance.Name, wspg);
            LocalLoggingService.Info("聚合器启动成功");
        }
Ejemplo n.º 2
0
        public static void Start()
        {
            AdhesiveFramework.Start();
            LocalLoggingService.Info("框架启动成功");
            StartService();
            LocalLoggingService.Info("WCF服务启动成功");
            var config = Configuration.GetConfig();
            var pp = new GreneralPerformanceCollector(config.PagePerformance);
            pp.Start();
            collectors.Add(config.PagePerformance.Name, pp);
            //var wcp = new GreneralPerformanceCollector(config.WcfClientPerformance);
            //wcp.Start();
            //collectors.Add(config.WcfClientPerformance.Name, wcp);
            var wsp = new GreneralPerformanceCollector(config.WcfServerPerformance);
            wsp.Start();
            collectors.Add(config.WcfServerPerformance.Name,wsp);
            LocalLoggingService.Info("收集器启动成功");

            var ppg = new GeneralPerformanceAggregator(config.PagePerformance);
            ppg.Start();
            aggregators.Add(config.PagePerformance.Name, ppg);
            //var wcpg = new GeneralPerformanceAggregator(config.WcfClientPerformance);
            //wcpg.Start();
            //aggregators.Add(config.WcfClientPerformance.Name, wcpg);
            var wspg = new GeneralPerformanceAggregator(config.WcfServerPerformance);
            wspg.Start();
            aggregators.Add(config.WcfServerPerformance.Name, wspg);
            LocalLoggingService.Info("聚合器启动成功");
        }