Пример #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));
 }