Month: November 2022

DecoratorB – Structural Patterns-2

In the preceding code, we registered ComponentA as the implementation of IComponent, with a singleton lifetime, just like the first time.Then, by using Scrutor, we told the IoC container to override that first binding and to decorate the already registered IComponent (ComponentA) with an instance of DecoratorA instead. Then, we overrode the second binding by […]



          Copyright © 2015-2024 | About | Terms of Service | Privacy Policy