Recommendation for a library for .NET Dependency Injection? #132345
Replies: 1 comment 1 reply
-
My favorite is the Scrutor. Here is the example code for it services.Scan(action =>
{
action
.FromAssemblies(Assembly.GetExecutingAssembly())
.AddClasses(publicOnly: false)
.UsingRegistrationStrategy(RegistrationStrategy.Skip)
.AsMatchingInterface()
.AsImplementedInterfaces()
.WithScopedLifetime();
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Can you recommend a NuGet package to make managing the Dependency Injection process eaiser?
Beta Was this translation helpful? Give feedback.
All reactions