emerged_entity
emerged_entity
CC#
Created by emerged_entity on 6/30/2024 in #help
FluentResults in the Domain layer
Thanks, I'll give it a look.
14 replies
CC#
Created by emerged_entity on 6/30/2024 in #help
FluentResults in the Domain layer
@SleepWellPupper @ffmpeg -i me -f null - Ok, I think I got the idea, Huge thank you for your advices.
14 replies
CC#
Created by emerged_entity on 6/30/2024 in #help
FluentResults in the Domain layer
At this point, as I see, Domain Events will require either custom handlers in the Application layer, or wrappers, or Domain layer dependency on MediatR so it's kind of the same situation.
14 replies
CC#
Created by emerged_entity on 6/30/2024 in #help
FluentResults in the Domain layer
I have already used my custom simpler implementations of this and it worked. So theoretically there is no issue at all since there is no issue at this point. But I just started a new project and I knew about a pretty popular library and wanted to use it since it just seems that it is more preferable to use well-tested library with a lot of functionality rather than recreating the wheel. And since for sure this library is used with Clean Architecture in some production environments, I am curious how people usually do that. I also found now such thing as raising Domain Events and handing them with MediatR which seems like a potential solution in this case, but I am not sure yet.
14 replies
CC#
Created by emerged_entity on 6/30/2024 in #help
FluentResults in the Domain layer
As per my understanding, Domain layer has to signal somehow that business rules are not followed and this validation logic should be encapsulated inside this layer. So it is either throwing exceptions or returning Results objects. And I really seem to prefer the second approach in this case and this leads me to a problem with either custom implementation or depdning on the package for consistency throughout the whole solution and avoiding additional complexity.
14 replies
CC#
Created by emerged_entity on 6/30/2024 in #help
FluentResults in the Domain layer
It's kinda of my desire in order it more properly since it is highly required in the job descriptions. Also, it seems that it is kind of a standard nowadays.
14 replies
CC#
Created by emerged_entity on 8/18/2023 in #help
❔ What type of architecture to use in project?
Thanks for the advice. Would definitely dig deeper into this.
7 replies