Ejemplo n.º 1
0
 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 commandDispatcher, IServiceProvider serviceProvider)
 {
     this.commandDispatcher = commandDispatcher;
     this.serviceProvider   = serviceProvider;
 }