CleanArchitecture
MediatR
CleanArchitecture | MediatR | |
---|---|---|
19 | 61 | |
17,203 | 11,708 | |
0.7% | 0.3% | |
8.6 | 5.9 | |
4 days ago | 7 days ago | |
C# | C# | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
CleanArchitecture
-
AdonisJS
Looking at this, it has similar aspects as ASP.NET Core, and the same flaws as the Controller per class design used. Methods such as "create", "show" and "store" do not share a state, they shouldn't share a class either.
However, you can rectify this, by just not trying to share a class with any of those. In .NET Steve Smith, aka Ardalis shows how to do this with his Clean architecture idea [1], Idea is to make a class for each endpoint. This also makes it easier for "Update" classes to share functionality with other "Update" classes and so on.
[1]: https://github.com/ardalis/CleanArchitecture/tree/main/sampl...
-
Dotnet.World.News(Wednesday, September, 20, 2023)
🔴 [CleanArchitecture] (Learning Template + Docs): A starting point for Clean Architecture with ASP.NET Core. Clean Architecture is just the latest in a series of names for the same loosely-coupled, dependency-inverted architecture.
- Advice for the web API app development using clean architecture in .NET 6.
- Не знаю где задать этот вопрос
- Where can I learn more about Design Patterns & Clean Architecture in .NET?
-
Learning .NET core as a front-end developer
Here’s a few: - complex domain driven example using vertical slice - another DDD example - clean architecture template by Jason taylor - clean architecture template by ardalis
-
Ask HN: Examples of Top C# Code?
This repository is a good place to start with modern c# code, specifically ASP.NET
https://github.com/ardalis/CleanArchitecture
-
API’s in ASP.NET
If you want to try clean architecture, you can check out Steve smith’s repo or Jason Taylor’s repo.
- Tips to develop a Blazor Server app that’s easy to migrate to WASM in the future
-
Measuring maintainability metrics with NDepend
🔗 Clean Architecture repository | GitHub
MediatR
- Crítica - MediatR: Pra Quê?
-
De MediatR para Mediator: uma migração mais leve e performática
MediatR – GitHub
- Reinventando a Roda: Criando seu próprio MediatR - Parte 1
-
Enhancing Request Pipelines with MediatR Behaviors
MediatR GitHub Repository
-
Setting Up MediatR in a Minimal API
MediatR: https://github.com/jbogard/MediatR
-
Essential .NET Libraries Every Developer Should Know
MediatR simplifies in-process messaging, CQRS, and domain events.
-
How to structure a solution in .NET
We need something to do the work of calling the tag repository and mapping to our dto. This will be a class known as a handler. The Web UI will pass a request - encapsulated as an object - to an instance of this handler. The handler will talk to the repository, map the result to a dto, and then return a response. We could (quite easily) write the code for all this ourselves. However there is an elegant library called MediatR that does this job already. Lets use it.
- Domain Events
-
The Monad Invasion - Part 2: Monads in Action!
You probably noticed that .SetName() returns a Either. You may have come across Unit in libraries like MediatR or Language-Ext. It's a simple construct representing a type with only one possible value. We use it as a placeholder for operations that do not return a value but may return another state. In our example, .SetName() is a Command that does not return a value but may fail. Therefore, the monad Either carries two possible states: Right (without value) or Left (with an Error).
-
How small is the smallest .NET Hello World binary?
The widely used MediatR library[0] could be used to do that as well, just FYI.
[0]: https://github.com/jbogard/MediatR
What are some alternatives?
CleanArchitecture - Clean Architecture Solution Template for ASP.NET Core
Mediator.Net - A simple mediator for .Net for sending command, publishing event and request response with pipelines supported
blazor-starter-kit - Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
Polly - Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.
GuardClauses - A simple package with guard clause extensions.
Brighter - A framework for building messaging apps with .NET and C#.