Giter Site home page Giter Site logo

Comments (2)

martinothamar avatar martinothamar commented on May 31, 2024 1

Hi! If the analyzer for example was added only to Application in this case, where the request is defined, it couldn't necessarily know that there was no handler. The handler could come from a reference that only Web sees right?

I feel like this starts to break down when things are split into different projects. The reason it's in the source generator itself currently is because that's the only place we have the whole context (and when it can actually be invoked).

I know that it's a little confusing when the diagnostics report on something from a different project t hough... Mediator follows roughly the same contract and behavior as MediatR, which is reflection based, so things get a bit iffy sometimes. A sourcegenerated-first design would probably constrain things a bit more so that we didn't end up in as many confusing situations. But that would have to be a new library 😄

from mediator.

panoukos41 avatar panoukos41 commented on May 31, 2024

Hey thanks for taking the time to answer me and I am happy to see your thoughts on this, no problem with me I just wanted to point it out as a potentials solution to this edge case problem :P

I will close this issue as to not contaminate your issues 😄

from mediator.

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.