示例#1
0
 public Engine(CommandDispatcher commandDispatcher)
 {
     this.commandDispatcher = commandDispatcher;
     session = new Session();
 }
 public Engine(CommandDispatcher commandDispatcher)
 {
     this.commandDispatcher = commandDispatcher;
 }
 public Engine(CommandDispatcher commandDispatcher, PhotoShareContext context)
 {
     this.commandDispatcher = commandDispatcher;
     this.context           = context;
 }
示例#4
0
 public Engine()
 {
     this.commandDispatcher = new CommandDispatcher();
 }
 public Engine(IReader reader, IWriter writer, CommandDispatcher commandDispatcher)
 {
     this.reader            = reader;
     this.writer            = writer;
     this.commandDispatcher = commandDispatcher;
 }
示例#6
0
 public Engine(CommandDispatcher commandDispatcher, ServiceProvider serviceProvider)
 {
     this.commandDispatcher = commandDispatcher;
     this.serviceProvider   = serviceProvider;
 }
示例#7
0
 public Engine(IServiceProvider serviceProvider)
 {
     this.serviceProvider   = serviceProvider;
     this.commandDispatcher = (CommandDispatcher)this.serviceProvider.GetService(typeof(ICommandDispatcher));
 }