We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to register all the types I need that derive from a certain interface, and there's no way to do this:
var baseType = typeof(IUseCase); var assembly = baseType.Assembly; var useCaseTypes = assembly.GetTypes() .Where(t => baseType.IsAssignableFrom(t)); foreach (var useCaseType in useCaseTypes) { builder.Register(useCaseType, Lifetime.Transient); }
The text was updated successfully, but these errors were encountered:
Agree. This is useful. I will expose Register(Type, ...). Thanks for the feedback.
Register(Type, ...)
Sorry, something went wrong.
Releaed in v1.5.1
No branches or pull requests
I want to register all the types I need that derive from a certain interface, and there's no way to do this:
The text was updated successfully, but these errors were encountered: