Scrutor icon indicating copy to clipboard operation
Scrutor copied to clipboard

Adding DecorateKeyed extension methods provided by isolated ServiceCollection.

Open sergey-vbs opened this issue 2 months ago • 0 comments

Usage

`services.AddKeyedTransient<IMyService, MyImpl>(myKey1); services.DecorateKeyed<IMyService, MyFirstDecorator>(myKey1); services.DecorateKeyed<IMyService, MySecondDecorator>(myKey1);

services.AddKeyedSingleton<IMyService, MyImpl>(myKey2); services.DecorateKeyed<IMyService, MyFirstDecorator>(myKey2); services.DecorateKeyed<IMyService, MySecondDecorator>(myKey2);`

sergey-vbs avatar Nov 14 '25 23:11 sergey-vbs