Scrutor icon indicating copy to clipboard operation
Scrutor copied to clipboard

Assembly scanning and decoration extensions for Microsoft.Extensions.DependencyInjection

Results 74 Scrutor issues
Sort by recently updated
recently updated
newest added

This is very strange, but this is what happens: With Scrutor v6.1.0 everything is fine. After updating to v7.0.0 we get a build error from [this line](https://github.com/Lombiq/Helpful-Extensions/blob/5d71c9ab4cc9307727ccc7f8f5d3cf77eac44828/Lombiq.HelpfulExtensions/Controllers/OrchardRecipeMigrationAdminController.cs#L98) from a project...

### Description I am trying to decorate an Open Generic repository using Scrutor, but I receive a `DecorationException` stating that the service could not be found, even though the service...

### Usage `services.AddKeyedTransient(myKey1); services.DecorateKeyed(myKey1); services.DecorateKeyed(myKey1); services.AddKeyedSingleton(myKey2); services.DecorateKeyed(myKey2); services.DecorateKeyed(myKey2);`

@khellang Add ServiceKeyAttribute to keyed services. ServiceDescriptor make the rest in LifetimeSelector.Populate