You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After investigating this problem, it seems to related with Castle.Core's Invocation.MethodInvocationTarget on UnitOfWorkInterceptor. In some cases Invocation.MethodInvocationTarget comes null and throws exception while intercepting.
If we change the code from_unitOfWorkOptions.GetUnitOfWorkAttributeOrNull(invocation.MethodInvocationTarget); to_unitOfWorkOptions.GetUnitOfWorkAttributeOrNull(invocation.GetConcreteMethod());
the problem is solved.
So @hikalkan,
Can we change the way of getting MethodInfo like above ? Is there any boundary or implementation exception to left as MethodInvocationTarget ?
After investigating this problem, it seems to related with Castle.Core's
Invocation.MethodInvocationTarget
on UnitOfWorkInterceptor. In some casesInvocation.MethodInvocationTarget
comes null and throws exception while intercepting.If we change the code
from
_unitOfWorkOptions.GetUnitOfWorkAttributeOrNull(invocation.MethodInvocationTarget);
to
_unitOfWorkOptions.GetUnitOfWorkAttributeOrNull(invocation.GetConcreteMethod());
the problem is solved.
So @hikalkan,
Can we change the way of getting MethodInfo like above ? Is there any boundary or implementation exception to left as
MethodInvocationTarget
?PR Branch and commit for fix : https://github.com/osoykan/aspnetboilerplate/commit/baf68fd5a3664353099fb469c5e650409139fe79
The text was updated successfully, but these errors were encountered: