hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9K
active users

#mediatr

0 posts0 participants0 posts today
Continued thread

This was a timely interview, as someone recently started a thread in the #cslanet forum about #CleanArchitecture, #MediatR, and #VSA

All of these things have come into being during the lifetime of #cslanet (27+ years is a long time), and it is interesting to do a compare/contrast with these "newcomer" ideas😁

Being a long-time advocate of object-oriented design around user scenarios (use cases), the idea of vertical slices for functionality makes a lot of sense to me.

1/🧵

The number of posts confusing #CQRS with #CQS is astonishing.

Just like the number of articles stating that #MediatR is an implementation of the GOF Mediator. Some even link the book: if they only followed the link they would easily realize GOF Mediator is a completely different pattern.

If you're migrating #MediatR v12, read the migration guide super carefully!

If you use behaviors and previously added the `TRequest : IRequest<TResponse>` generic constraint when moving to v11, you need to revert that back to just `notnull` otherwise requests with only the non-generic `IRequest` will SILENTLY no longer be processed by it; no compilation or runtime errors. I now doubly appreciate my API acceptance tests, otherwise I wouldn't have spotted it!

github.com/jbogard/MediatR/wik

Trying the “strangler fig” approach to an old webforms 4.8 site and am using 7.0 with postgres (first time!) for identity but now comes the “how to I handle user data requests from the old site”. Thought about an API but before I did - anyone know if there is a way to send request from a 4.8 app and let it be handled in a net 7.0 library? Can’t reference it directly in the 4.8 app but I imagine there’s a way..

This looks really nice, a clean evolution from .

The decoupled nature of the frameworks is awesome, but also a concern - how do I know there’s a handler there, how to see that in static analysis?

Anyone have an idea for how to keep the loose coupling but also let IDE’s surface the links & handlers?

@jeremydmiller
wolverine.netlify.app/tutorial

wolverine.netlify.appWolverine as Mediator | WolverineNext Generation Command and Message Bus for .NET

Currently learning more about Clean Architecture.
Using MediatR seems to be quite en vogue these days. But I don't really understand why. There are some benefits to this abstraction but the code obfuscation and the Service Locator pattern through the backdoor it brings seem like a really bad design decision. It totally removes the dependency declaration of a class which seems horrible to test.
Or am I just missing something here?

#csharp #dotnet #CleanArchitechture #MediatR