Esempio n. 1
0
        public static void RunApplication(string path, int port)
        {
            if (_harness != null)
            {
                // if we're running a different app right now, stop it and clear it out
                if (!_harness.Matches(path, port))
                {
                    _harness.Stop();
                    _harness = null;
                }
            }

            if (_harness == null)
            {
                _harness = new AppHarness(path, port);
            }

            _harness.Start();
        }