Esempio n. 1
0
		private static void TestServer()
		{
			HomeEnvironment.Init();
			
			var app = new HomeApplication();

			app.Init();
			app.StartServices();

			Console.WriteLine("Service is available. Press ENTER to exit.");
			Console.ReadLine();

			app.StopServices();
		}
Esempio n. 2
0
        private static void TestServer()
        {
            var path = typeof (Program).Assembly.Location;
            var currentDirectory = Path.GetDirectoryName(path);
            Directory.SetCurrentDirectory(currentDirectory);

            var app = new HomeApplication();

            app.Init();
            app.StartServices();

            Console.WriteLine("Service is available. Press ENTER to exit.");
            Console.ReadLine();

            app.StopServices();
        }