public ConsoleAppExample() { _bootstrapper = new Bootstrapper(); // Resolve the engine which resolves all dependencies _engine = _bootstrapper.GetEngine(); _engine.Start(); }
protected override void OnStart(string[] args) { // Resolve the engine which resolves all dependencies _engine = _bootstrapper.GetEngine(); if (_engine == null) { Stop(); } else { _engine.Start(); } }