Skip to content

Adding DecorateKeyed extension methods provided by isolated ServiceCollection.#263

Draft
sergey-vbs wants to merge 1 commit intokhellang:masterfrom
sergey-vbs:feat/decorated-keyed
Draft

Adding DecorateKeyed extension methods provided by isolated ServiceCollection.#263
sergey-vbs wants to merge 1 commit intokhellang:masterfrom
sergey-vbs:feat/decorated-keyed

Conversation

@sergey-vbs
Copy link

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 sergey-vbs marked this pull request as draft November 18, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant