RepositoryC#
LU

LuckyPennySoftware/MediatR

Simple, unambitious mediator implementation in .NET

11.8kstars
2.2kforks
0issues
0views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

10
TINIX TRENDING·Chủ đề: hacktoberfest

#10 Repository Của Tháng

7
TINIX TRENDING·Chủ đề: hacktoberfest

#7 Repository Của Tháng

🚀 MediatR - Mediator đơn giản, mạnh mẽ cho .NET

Mediator pattern trong .NET với hỗ trợ generic variance thông minh.

MediatR là một thư viện mediator đơn giản, không phụ thuộc (no dependencies), hỗ trợ messaging nội bộ (in-process) trong .NET. Nó hỗ trợ các mẫu request/response, commands, queries, notifications và events, cả đồng bộ và bất đồng bộ, với khả năng dispatch thông minh nhờ generic variance của C#.

✨ Điểm nổi bật

  • Yêu cầu đơn giản: Hỗ trợ IRequest, INotification, IStreamRequest thông qua MediatR.Contracts.
  • Tích hợp dễ dàng: Đăng ký với IServiceCollection qua AddMediatR.
  • Hỗ trợ đa dạng handler: Tự động đăng ký IRequestHandler, INotificationHandler, IStreamRequestHandler...
  • Tùy biến hành vi: Thêm behaviors, stream behaviors, pre/post processors.
  • Hỗ trợ async: Xử lý bất đồng bộ với IStreamRequest và các handler tương ứng.
  • Giấy phép linh hoạt: Hỗ trợ thiết lập license key qua cấu hình hoặc code.

💡 Vì sao đáng chú ý

MediatR cung cấp một cách tiếp cận nhẹ nhàng, không phức tạp để triển khai mediator pattern trong .NET. Không có phụ thuộc bên ngoài, chỉ cần cài đặt qua NuGet hoặc .NET CLI. Đặc biệt hữu ích cho các dự án cần tách biệt logic nghiệp vụ, xử lý sự kiện hoặc xây dựng pipeline xử lý yêu cầu linh hoạt.


#MediatR #DotNet #CSharp #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
EbookFoundation/free-programming-books

:books: Freely available programming books

403.1k
Nov 30, 2026
RepositoryGo
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

197.2k
Dec 2, 2026
RepositoryC#
jellyfin/jellyfin

The Free Software Media System - Server Backend & API

60.0k
Dec 1, 2026
RepositoryC#
PowerShell/PowerShell

PowerShell for every system!

56.4k
Dec 1, 2026
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169.5k
Dec 1, 2026
RepositoryTypeScript
excalidraw/excalidraw

Virtual whiteboard for sketching hand-drawn like diagrams

136.5k
Nov 28, 2026
RepositoryPython
sherlock-project/sherlock

Hunt down social media accounts by username across social networks

120.3k
Dec 2, 2026
RepositoryJavaScript
axios/axios

Promise based HTTP client for the browser and node.js

109.5k
Dec 2, 2026
Repository
florinpop17/app-ideas

A Collection of application ideas which can be used to improve your coding skills.

98.8k
Oct 11, 2025