public ConsoleAppExample()
 {
     _bootstrapper = new Bootstrapper();
     // Resolve the engine which resolves all dependencies
     _engine = _bootstrapper.GetEngine();
     _engine.Start();
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 3
0
 public IntegrationService()
 {
     InitializeComponent();
     _bootstrapper = new Bootstrapper();
     _engine       = _bootstrapper.GetEngine();
 }