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
ServiceDescriptor
Currently, Injectio generated ServiceDescriptor.Describe for each service:
ServiceDescriptor.Describe
ServiceCollectionDescriptorExtensions.TryAdd( serviceCollection, ServiceDescriptor.Describe( typeof(TService), typeof(TImplementation), ServiceLifetime.Scoped ) );
Switching to ServiceDescriptor.Scoped<TService, TImplementation> where TImplementation : TService can detect type errors at compile time.
ServiceDescriptor.Scoped<TService, TImplementation> where TImplementation : TService
The text was updated successfully, but these errors were encountered:
This won't work for open generics registration
Sorry, something went wrong.
No branches or pull requests
Currently, Injectio generated
ServiceDescriptor.Describe
for each service:Switching to
ServiceDescriptor.Scoped<TService, TImplementation> where TImplementation : TService
can detect type errors at compile time.The text was updated successfully, but these errors were encountered: