More DI: The Real Power of Decorators -- Stacking Functionality

added by DotNetKicks
1/21/2019 1:04:06 PM

1 Kicks, 497 Views

Over the last several articles, we have looked at a decorator to add retry functionality, a decorator to log exceptions, and a decorator to add a client-side cache. We've seen that decorators let us easily add functionality without creating subclasses and without modifying our existing objects.