Inheritance: HandlerRegistrar
        private static void RegisterCommands(Type type, Registry registry)
        {
            var commandHandlerRegistrarm = new CommandHandlerRegistrar(type, registry);

            commandHandlerRegistrarm.RegisterTypes(typeof(IUpdateCommand <,>), typeof(UpdateCommandHandler <, ,>));
            commandHandlerRegistrarm.RegisterTypes(typeof(IDeleteCommand <,>), typeof(DeleteCommandHandler <, ,>));
        }
Ejemplo n.º 2
0
 private static void RegisterCommands(Type type, Registry registry)
 {
     var commandHandlerRegistrarm = new CommandHandlerRegistrar(type, registry);
     commandHandlerRegistrarm.RegisterTypes(typeof(IUpdateCommand<,>), typeof(UpdateCommandHandler<,,>));
     commandHandlerRegistrarm.RegisterTypes(typeof(IDeleteCommand<,>), typeof(DeleteCommandHandler<,,>));
 }