pipeline-behaviors

Installation
SKILL.md

MediatR Pipeline Behaviors

Overview

Pipeline Behaviors implement cross-cutting concerns that execute before/after every command or query handler:

  • Validation - Validate requests before handler executes
  • Logging - Log request/response details
  • Exception Handling - Convert exceptions to Results
  • Transaction - Wrap handlers in database transactions
  • Caching - Cache query results
  • Performance - Monitor slow operations

Quick Reference

Behavior Purpose Order
LoggingBehavior Log requests First (outer)
ValidationBehavior Validate input Second
Related skills
Installs
8
GitHub Stars
52
First Seen
Mar 1, 2026