Scrutor
Scrutor copied to clipboard
Assembly scanning and decoration extensions for Microsoft.Extensions.DependencyInjection
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 {...
### 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());...
…h some DI containers. In case you want this.
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."...
… the Azure Function Host DI container.
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`,...