Skip to content
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

Interceptors not firing #6948

Closed
cyrusdowney opened this issue May 4, 2024 · 2 comments
Closed

Interceptors not firing #6948

cyrusdowney opened this issue May 4, 2024 · 2 comments

Comments

@cyrusdowney
Copy link

  • Your Abp package version - 9.0
  • Your base framework: .Net Framework or .Net Core. - .Net 8
  • Steps needed to reproduce the problem.

Clone the aspnetboilerplate-samples repo
Open the InterceptionDemo solution
Put breakpoints in the MeasureDurationWithPostAsyncActionInterceptor file. In the constructor and in the TestActionAsync and LogExecutionTime methods.

Run the project
From the swagger page execute the IsTenantAvailable endpoint.
Breakpoints n the TestActionAsync and LogExecutionTime methods are not hit.
The text "MeasureDurationWithPostAsyncActionInterceptor" is not in the ouput->debug window, output->asp.net core web server window, or in the log files.

The MeasureDurationWithPostAsyncActionInterceptor constructor is executed. The MeasureDurationWithPostAsyncActionInterceptor interceptor is registered to the AccountAppService service, but the Intercept and InternalIntercepts are not being hit.

I'm experiencing the same behavior in a 9.1.3 version ((AppVersionHelper version 13.1) of the framework, but it works in 8.2 version (AppVersionHelper version 12.2)

image

@cyrusdowney
Copy link
Author

cyrusdowney commented May 7, 2024

I just wanted to mention that when I change the IsTenantAvailable to public virtual async, this works. I confirmed that this worked in my 9.1 project a well. Feel free to close.

image

@ismcagdas
Copy link
Member

Thanks @cyrusdowney 🙂

@ismcagdas ismcagdas removed this from the v9.3 milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants