예제 #1
0
 public bool Handles(CommandModel model)
 {
     return(model.TargetType == Command.TargetType);
 }
예제 #2
0
 public CommandHandlerModel(MethodInfo method)
 {
     Method  = method;
     Command = new CommandModel(method.GetParameters().First().ParameterType);
 }
예제 #3
0
 public bool HandlesCommand(CommandModel cmd)
 {
     return(CommandHandlers.Any(c => c.Handles(cmd)));
 }
예제 #4
0
 public CommandHandlerModel(MethodInfo info, CommandModel model)
 {
     Method  = info;
     Command = model;
 }
예제 #5
0
 public bool IsCreatedBy(CommandModel model)
 {
     return(FactoryHandler.Handles(model));
 }