Comments (6)
You should install Mediator.SourceGenerator
in the outermost project and then install Mediator.Abstractions
in all remaining projects that define handlers: https://github.com/martinothamar/Mediator#3-usage-and-abstractions
from mediator.
Thanks, I will try it.
from mediator.
it seems that it won't work. on 2.1.7
from mediator.
Hi! Need more specifics to understand what's going wrong. In the meantime, here are some samples showing various ways to organize multiple projects, including clean-architecture style:
- ASP.NET Core clean architecture - pretty standard
- ASP.NET Core indirect messages - a custom
ApplicationHandler
abstraction with implementations in a separate project - ASP.NET Core with internal messages -
InternalsVisibleTo
used to share requests and handlers across projects - this one only works in 3.0 previews
from mediator.
Hi. I have the same problem.
Iām trying to publish a notification in my Application.Core Project and catch this notification in my Demo.Server.
Project Overview:
Demo.Server (references Application.Core) with Mediator.Abstractions 2.1.7
Application.Core with Mediator.Abstractions 2.1.7 and Mediator.SourceGenerator 2.1.7 and is adding AddMediator() to a IServiceCollection.
My Application.Core is publishing a notification (for example, DeviceStatusChanged) and also has a consumer for this. My Demo.Server also has a consumer for (DeviceStatusChanged) but never receives this notification."
I hope this helps! If you have any other questions or need further assistance, feel free to ask.
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
- Suggestion: Consider moving the analyzing to a dedicated analyzer HOT 2
- 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.