public bool Handles(CommandModel model) { return(model.TargetType == Command.TargetType); }
public CommandHandlerModel(MethodInfo method) { Method = method; Command = new CommandModel(method.GetParameters().First().ParameterType); }
public bool HandlesCommand(CommandModel cmd) { return(CommandHandlers.Any(c => c.Handles(cmd))); }
public CommandHandlerModel(MethodInfo info, CommandModel model) { Method = info; Command = model; }
public bool IsCreatedBy(CommandModel model) { return(FactoryHandler.Handles(model)); }