示例#1
0
 public CommandSetter(
     ICommandConvention commandConvention,
     ICommandBuilder commandBuilder)
 {
     this.commandConvention = commandConvention;
     this.commandBuilder    = commandBuilder;
 }
示例#2
0
 public CommandsDiscover(
     ICommandFactory commandFactory,
     ICommandConvention commandConvention,
     ICommandSetter commandSetter = null)
 {
     CommandFactory     = commandFactory;
     CommandConvention  = commandConvention;
     this.commandSetter = commandSetter ?? new CommandSetter(commandConvention, new CommandBuilder(commandFactory));
 }
示例#3
0
 public CommandsDiscover(ICommandConvention commandConvention)
     : this(new CommandFactory(), commandConvention)
 {
 }