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

Hi dear, I want to decorate command handlers with decorator Pattern in an [ASP.NET](http://asp.net/) Core app. So I registered command handers first and then register decorators. But it doesn't work....

Hello, I have a folder containing all my classes used to use dependency injection with IOptions [Microsoft doc](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-6.0) I would like it to be registered automatically as for my repositories...

When the implementation class is a generic class that is implementing a generic interface as below, it's not able to detect `IEventHandler` and `IEventHandler` from `ActionableEventHandler` ```csharp class CustomEvent {...

Bug

### Background and motivation ITNOA I think it is very useful to add ability to load configuration from file in Ioc, Some of values of this features 1. We can...

Currently we're using Scrutor to scan & register a set of components and use the approach below: ``` services.Scan(scan => scan.FromAssemblies(assembliesToScan) .AddClasses(classes => classes.Where(type => typeFilter(type) && IsService(type))) .AsSelfWithInterfaces() .WithScopedLifetime());...

This is a continuation of this comment: https://github.com/khellang/Scrutor/issues/171#issuecomment-1159557987 I have created a SLN/failing test demonstrating this issue here: https://github.com/Mike-E-angelo/Stash/tree/master/Scrutor.Decorate Reverting to 4.1.0 removes this issue. Please do let me know...

Using Scrutor 4.2.0 with Azure Functions seems to cause issues. Error when running the function (locally and remotely): "Microsoft.Azure.WebJobs.Script.WebHost: Registering implementation type FunctionApp1.BasicService is not assignable to service type FunctionApp1.IService."...

Hey, I added support for variable skip registration #167. Skip can be configured to skip registration depending on the selected behavior. `SkipBehavior` has 4 states `Default`, `ServiceType`, `SkipBehavior` and `Exact`,...