Загрузка...

Building Real API Slices With MediatR Pattern in .NET 10 | TalkPulse Ep.3

🎙️ TalkPulse Ep.3 — Today we build real working API slices using Vertical Slice
Architecture in .NET 10. We implement CreateSession, GetSessionById, and CreatePoll
— each a fully self-contained feature from endpoint to database.

We also introduce two critical patterns that every .NET project needs:
the Result error pattern and MediatR Pipeline Behaviors.

By the end of this stream:
✅ MediatR LoggingBehavior + ValidationBehavior wired as pipeline
✅ Result pattern — no HTTP exceptions thrown from handlers
✅ CreateSession slice — full VSA slice end-to-end
✅ GetSessionById — includes polls + live vote counts
✅ CreatePoll — FluentValidation with 2–6 options rule
✅ Dev seed data for consistent live testing
✅ All tested live in Scalar UI

💡 What is Vertical Slice Architecture?
Every feature owns everything — from the HTTP endpoint down to the database call.
No shared services. No repositories. No fighting your architecture.

📦 Tech used today:
.NET 10 | MediatR | FluentValidation | EF Core 10 | PostgreSQL | Scalar

⭐ GitHub Repo: https://github.com/yshashi/TalkPulse
📺 Missed Ep.1 or Ep.2? Watch the playlist: https://www.youtube.com/watch?v=1nD8oRCNcPI&list=PLc2Ziv7051bZmovEL_XL4THcelJGjFxj3

🔔 Subscribe — every Wednesday & Friday we ship new features live!

🏷️ #dotnet #dotnet10 #verticalslice #mediatR #csharp #cleanarchitecture #livecoding #aspnetcore

Видео Building Real API Slices With MediatR Pattern in .NET 10 | TalkPulse Ep.3 канала Let's Program
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять