상속: HandlerRegistrar
        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 <, ,>));
        }
예제 #2
0
 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<,,>));
 }