public void Dispose() { _engine.IsStarted = true; _engine = null; _appContext = null; _starters.Clear(); _starters = null; }
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(); }