GithubHelp home page GithubHelp logo

Comments (4)

gautema avatar gautema commented on July 27, 2024

Hi, and thanks for the feedback.

I have always just though of the RouteRegistar as a convenient way to register all at the same time. In your case, I would look at just registering them directly on the Router manually. If that becomes to cumbersome, I guess don't think adding a new method in the RouteRegistar would do any harm. I have to think a bit about the renaming and deprecation as I'd like to avoid it if possible. If you make pull request for it with tests, I can get it in to the code during next week.

from cqrslite.

binarymash avatar binarymash commented on July 27, 2024

Hmm.. I wonder if I've misunderstood the registration process and made things more complex than it needs to be :)

Ok, let me check my code - I'll get back to you.

from cqrslite.

binarymash avatar binarymash commented on July 27, 2024

Ok, I've looked through the code... There's quite a lot of boilerplate code to register each handler - basically copying much of RouteRegistrar.InvokeHandler to create the delegates to pass into IHandlerRegistrar.RegisterHandler.

So, I think it's worth having something in CQRSlite... I've had a go at implementing it, and it's actually a very small change. Seems to work ok for me, I'll create a pull request shortly.

from cqrslite.

gautema avatar gautema commented on July 27, 2024

Fix in 0.20.0

from cqrslite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.