Esempio n. 1
0
        protected override void OnStart(string[] args)
        {
            string path = System.Reflection.Assembly.GetExecutingAssembly().Location;

            Environment.CurrentDirectory = path.Substring(0, path.LastIndexOf(System.IO.Path.DirectorySeparatorChar));

            //System.Threading.Thread.Sleep(10000);
            core = new WebServerCore.Core();
            core.Start();
        }
Esempio n. 2
0
 protected override void OnStop()
 {
     core.Close();
     core = null;
 }