private static void RegisterQueries(Type type, Registry registry) { var queryHandlerRegistrar = new QueryHandlerRegistrar(type, registry); queryHandlerRegistrar.RegisterTypes(typeof(ICreateCommand <,>), typeof(CreateCommandHandler <, ,>)); queryHandlerRegistrar.RegisterTypes(typeof(IGetCommand <,>), typeof(GetCommandHandler <, ,>)); }
private static void RegisterQueries(Type type, Registry registry) { var queryHandlerRegistrar = new QueryHandlerRegistrar(type, registry); queryHandlerRegistrar.RegisterTypes(typeof(ICreateCommand<,>), typeof(CreateCommandHandler<,,>)); queryHandlerRegistrar.RegisterTypes(typeof(IGetCommand<,>), typeof(GetCommandHandler<,,>)); }