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