-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
MediatR register error #545
Comments
@hani1989 Interesting. So it happens the Another question, why do you open scope in a chain |
@dadhi |
@hani1989 type => type.IsInterface
&& !type.IsAssignableFrom(typeof(Attribute)) // we want to exclude MediatR attributes
&& !type.IsAssignableTo(typeof(Delegate)) // here!!! I am still thinking that it maybe some other issue as well. container.RegisterDelegate<IResolverContext, ServiceFactory>(r => r.Resolve); |
@dadhi
New register code:
|
@dadhi Ok, let's be more specific: Either add the check to type != typeof(ServiceFactory) or add the |
@dadhi |
@hani1989 did it work? |
@dadhi |
Ok. Let's keep it open. |
Hi,
I upgrade reference in my application (framework 4.8 asp.net webforms) from v4.8.3 to v5.3.0
In my application I register MediatR (v9.0.0) like this:
Before upgrade my test:
Not reported problems.
After i have error:
Wath is reason?
The text was updated successfully, but these errors were encountered: