Comments (2)
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.
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)
- AddMediator(config => ..) not working HOT 4
- Run NotificationHandlers in parallel HOT 17
- Usage without dependency injection HOT 2
- Support for internal objects that implement IRequest. HOT 2
- SQL Transactions with a pipeline HOT 1
- Is it possible to get a Courier design similar to another library in Mediatr HOT 2
- Multilayered app problem HOT 6
- Generator 'IncrementalMediatorGenerator' failed to initialize under .net 8 (8.0.0.100) and Sonoma 14.1 HOT 1
- DefaultServiceLifetime.Transient registers Mediator as transient too as opposed to ReadMe HOT 7
- Proposal: Mediator 3.0 design to support multiple configuration and fast switching. HOT 1
- Empty Handler needed in order to work with behavoiur pipeline HOT 2
- Sample projects don't work in isolation HOT 3
- different Request/Command/Query HOT 2
- Native AOT HOT 2
- Mediator.MissingMessageHandlerException Help
- Incorrect switch case order in polymorphic notifications HOT 3
- Issue on Project with Mediator and MassTransit HOT 1
- Support generic handlers HOT 3
- Move Interfaces to Mediatr Contracts Package.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediator.