private static void RegisterQueryForDefaultCrudCommands(Type type, Type genericCommand, Registry registry) { if (type.ImplementsInterfaceTemplate(genericCommand)) { MvcQueryRegistrar.BuildQueryRegistrarForCrudCommand(type, genericCommand).RegisterQuery(registry); } }
public void Process(Type type, Registry registry) { if (type.ImplementsInterfaceTemplate(typeof(IQueryHandler <,>))) { MvcQueryRegistrar.BuildQueryRegistrarForHandler(type).RegisterQuery(registry); } if (type.ImplementsInterfaceTemplate(typeof(ICommandHandler <>))) { MvcCommandRegistrar.BuildCommandRegistrarForHandler(type).RegisterCommand(registry); } }