public Engine(IServiceProvider serviceProvider)
 {
     this.serviceProvider           = serviceProvider;
     this.commandDispatcher         = (CommandDispatcher)this.serviceProvider.GetService(typeof(ICommandDispatcher));
     this.databaseInitializeService = (IDatabaseInitializeService)this.serviceProvider.GetService(typeof(IDatabaseInitializeService));
 }
 public Engine(CommandDispatcher dispatcher)
 {
     this.dispatcher = dispatcher;
 }