SleepWellPupper
FluentResults in the Domain layer
If you're interested, I use a source generator so I don't have any external runtime dependencies for my projects. But that SG doesn't generate the FluentResults API, only union types so it might not exactly fit your need.
14 replies
FluentResults in the Domain layer
Don't overcomplicate simple things.
KISS is a good friend you should seek.
The way I see it, FluentResults is a cross-cutting dependency so having it referenced where needed is preferable to whatever complicated solution might remedy this apparent "problem".
14 replies
FluentResults in the Domain layer
Package references are transient, so any layer depending on your domain layer will of course also depend on your result types.
Personally, I use result types also (lots of custom ones, too), albeit without 3rd party libraries. I associate them to the service/operation that produces them; general result types usually land in
Common
.
What is the specific functionality you require from FluentResults?14 replies
Simple Injector with mediatR
Also, if you find yourself unable to integrate MediatR with SimpleInjector, you might want to look into the SimpleInjector ASP integration guides. They showcase how you can use the default DI container (to register MediatR properly) and then cross-wire into a SimpleInjector Container
10 replies