Base solution for your next web application
Open Closed

Custom interceptor - No Intercept method calls #9316


User avatar
0
1dataladder created

Hello Zero,

we're trying to add some custom log audit of the business logic service calls using the interceptor approach. Following the steps in the tutorial I've written an interceptor class, a registrar and added the lines to the module. But I can't see no Intercept method calls.

Here's the interface declaration: public interface IDataAppService : IAsyncCrudAppService<DataSourceDto, Int32, PagedDataSourceResultRequestDto, CreateDataSourceDto, DataSourceDto>

We're working with the Ng+Core template.

Any assistance is appreciated, thank you.


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi 1dataladder

    Can you share the full code or an example project?

    You can also check this sample https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/InterceptionDemo

  • User Avatar
    0
    1dataladder created

    Hello maliming,

    although I hadn't managed to make it work I found a solution using action filters. The sample project didn't work for me too.

    Nevermind, I'm closing the support request, thank you.