DEV Community


Decorating Command Handler with Decorator Pattern in .NET 5

Łukasz Reszke
Open-minded software engineer. Programming mostly in C#. Event Storming facilitator.
・1 min read


This is my first video, where I describe and show how you can use decorator pattern with .NET 5 default dependency injection to extend the class behaviour, without modifying it. This is one of possible Open/Close principle implementations.

Hope you enjoy!

Discussion (0)