Ejemplo n.º 1
0
        public AutomationService()
        {
            InitializeComponent();

            HomeEnvironment.Init();

            app = new HomeApplication();
            app.Init();
        }
Ejemplo n.º 2
0
        protected override void OnStart(string[] args)
        {
            appTask = Task.Run(() => {
                var app = new HomeApplication();
                app.Init();
                app.StartServices();

                return(app);
            });
        }
Ejemplo n.º 3
0
        public AutomationService()
        {
            InitializeComponent();

            var path             = typeof(Program).Assembly.Location;
            var currentDirectory = Path.GetDirectoryName(path);

            Directory.SetCurrentDirectory(currentDirectory);

            app = new HomeApplication();
            app.Init();
        }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 5
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();
        }