Comments (6)
Do you have code on that endpoint to handle that message type?
Should look something like
public Task Handle(Messages.OrderPlaced message, IMessageContext context) {
}
Scratch that, no you shouldn't see this event in the domain endpoint. For some reason its being delivered to your endpoint and NSB is complaining that you have no handlers for it.
I can't say for certain why your domain endpoint is receiving this message without seeing the code. But thats where you should look. Find out why the domain is receiving that event.
In the eventstore UI - find a projection called "Domain" something and paste the definition and maybe I can help debug it
from aggregates.net.
I couldn't see any projection with the name "domain", only found another one called "application" (which inside the "Source" contains "Domain"), here's the source of it:
function processEvent(s,e) {
linkTo('application.1.0', e);
}
options({
reorderEvents: false,
processingLag: 0
})
fromCategories(['DOMAIN','OOB']).
when({
'Messages.OrderPlaced v1': processEvent
});
And here's a picture of the UI:
from aggregates.net.
I have the following:
WebAPI project which sends the commands to "Domain" project (contains the PlaceOrder
handler), then the latter uses Apply<OrderPlaced>
to save in EventStore and trigger the event, another project I have called "application" which contains a handler to OrderPlaced
event.
from aggregates.net.
from aggregates.net.
To be honest I tried a lot of things but I don't remember I changed the names, but anyway I deleted ES db and logs and RabbitMQ's data, and started clean, it's working now, in some cases (not sure in which case yet) the Application receives the event twice, but I'm not sure if it's because I'm doing something wrong or not, I'll keep testing.
Regarding the projections, It keeps creating only one and named after the Application endpoint as you can see in the previous screenshot I sent.
BTW, I don't know if this is important but when I'm configuring the EventStore client and set the name in the connection the same in both the Domain app and Application app (I use the string "domain")
from aggregates.net.
Sure, makes sense a clean start would fix a lot of issues.
The Todo App uses a docker compose file - during development you should do docker-compose down
and delete the previous images to be absolutely certain you are using your latest code.
Also do be sure to not name different endpoints the same name!
Theres several shell scripts in the eShop example to help with this process located here: https://github.com/charlessolar/eShopOnContainersDDD/tree/master/linux-cli
from aggregates.net.
Related Issues (20)
- Migrate to Actions
- Any plan to write a comprehensive documentation HOT 1
- Adding EventStore to my endpoint fails HOT 7
- ProjectionsManager is failing because there's no SSL certificate available. HOT 6
- Isn't there a way to NOT use EventStore? HOT 3
- How to catch BusinessException in custom built behavior? HOT 14
- Writing to EventStore is taking so much time, sometimes it doesn't work, and events don't reach directly to Application endpoint. HOT 8
- Taking snapshot to speed reading from EventStore HOT 3
- Inheritance in models HOT 1
- Replay all events if application endpoint version upgraded HOT 2
- Sagas Doesn't Work HOT 16
- Setting Correlation Id Can Make NSB Throw HOT 1
- Migrate logging to Microsoft.Extensions.Logging.Abstractions HOT 1
- Add development mode option
- Force Microsoft DI and Logging Infrastructure HOT 2
- Use correct mime type for message content type
- ScopeValidation of DI when in Production Mode HOT 10
- IApplicationUnitOfWork not present in TestableContext HOT 3
- Testing - Child Entity - Multipe Events HOT 3
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 aggregates.net.