Пример #1
0
            public void Dispose()
            {
                _engine.IsStarted = true;

                _engine     = null;
                _appContext = null;
                _starters.Clear();
                _starters = null;
            }
Пример #2
0
            public EngineStarter(SmartEngine engine)
            {
                _engine     = engine;
                _appContext = engine.Application;

                _starters = _appContext.TypeScanner.FindTypes <IStarter>()
                            .Select(t => (IStarter)Activator.CreateInstance(t))
                            .Where(x => x.Matches(_appContext))
                            .ToList();
                _starters = SortStarters(_starters).ToList();
            }