GithubHelp home page GithubHelp logo

Comments (4)

gautema avatar gautema commented on July 27, 2024

Hi.

Do you have any possibility to recreate this issue? Any code would be great.

from cqrslite.

orendin avatar orendin commented on July 27, 2024

I'll try to reproduce the issue in the sample or unit tests on Monday.
I'll let you know how I go and possibly send some code or a pull request.

Thanks

Ben

from cqrslite.

orendin avatar orendin commented on July 27, 2024

Hi there

I found the issue. It was my own fault, really. But maybe a you could add a more useful error message.
When I added a new dependency to inject in the Startup.cs, I accidentally provided the wrong type. That means during resolution time, it could not find a type for constructor injection.

This is easily reproducible by just adding e.g. an unregistered interface to the InMemoryEventStore in the Sample like so:
`

public interface IFailedEntirely { }
...
public InMemoryEventStore(IEventPublisher publisher, IFailedEntirely failedEntirely)
    {
        _publisher = publisher;
    }

`

Then run the sample, click on add, provide a name and submit. Boom!
Because the error message is rather generic and since the mistake was rather subtle, I did not spot it very easily.

Thanks for your help!

Ben

from cqrslite.

gautema avatar gautema commented on July 27, 2024

Ok. I figured it might be the case. I've already added a bit better error message, but will consider making a custom exception for it in the future.

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.