DEV Community

Łukasz Reszke
Łukasz Reszke

Posted on

2

Decorating Command Handler with Decorator Pattern in .NET 5

Hey.

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!

https://www.youtube.com/watch?v=R_-3VwMH5Jg&t=5s

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay