public void Run(string[] args)
        {
            if (_stepCompleted != 3)
            {
                throw new Exception("Invalid order: step 3: Build must be completed before step 4.");
            }

            try
            {
                using (var window = _chromelyApp.CreateWindow())
                {
                    try
                    {
                        window.Run(args);
                    }
                    catch (Exception exception)
                    {
                        Logger.Instance.Log.Error(exception);
                    }
                }
            }
            catch (Exception exception)
            {
                Logger.Instance.Log.Error(exception);
            }
        }
Esempio n. 2
0
        public void Run(string[] args)
        {
            if (_stepCompleted != 3)
            {
                throw new Exception("Step 1 must be completed before step 4.");
            }

            try
            {
                using (var window = _chromelyApp.CreateWindow())
                {
                    try
                    {
                        window.ScanAssemblies();
                        window.RegisterRoutes();
                        window.Run(args);
                    }
                    catch (Exception exception)
                    {
                        Logger.Instance.Log.Error(exception);
                    }
                }
            }
            catch (Exception exception)
            {
                Logger.Instance.Log.Error(exception);
            }
        }