-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
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
Upgrade from 4.2.2 to 5.0.1 #235
Comments
It's really hard to tell what's wrong here, especially since the code posted doesn't even compile. Do you have any more details on the registered services? Preferably a runnable repro? |
ProblemWithscruptor.zip |
I am also running into this issue as well with 5.01 ... dozens of my registrations using |
I had the same problem. I used dummy handler to show the problem
I got an error stating that no suitable constructor was found, even when I used an empty one. Mb this will help you to find the real problem. |
I have the same issue ;/ |
services.AddScoped()
.AddScoped<IEntityService>(x => x.GetRequiredService())
.Decorate<IEntityService, PaymentInitiationServiceWithCache>()
.AddScoped(x => x.GetRequiredService())
.Decorate<IPaymentInitiationService, PaymentInitiationServiceWithCache>()
.AddScoped(x => x.GetRequiredService());
i Upgrade to 5.0.1 and now i get
System.InvalidOperationException: 'A suitable constructor for type 'TenantConsentsServiceWithCache' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.'
The text was updated successfully, but these errors were encountered: