Esempio n. 1
0
        protected override void OnStop()
        {
            if (serviceHost != null)
            {
                serviceHost.Close();
            }
            InfoProviderCenter infoProviderCenter = new InfoProviderCenter();
            infoProviderCenter.StopSampling();

        }
Esempio n. 2
0
     private static void runProgram()
     {
 
         ServiceHost serviceHost = new ServiceHost(typeof(InfoProviderCenter));
         serviceHost.Open();
         InfoProviderCenter infoProviderCenter = new InfoProviderCenter();
         infoProviderCenter.StartSampling();
         LogManager.Instance.WriteInfo("InfoProviderCenter Server Started...........");
     }