Base solution for your next web application
Open Closed

AbpCrossCuttingConcerns - AddApplied, where is it set? #4061


User avatar
0
bilalhaidar created

Hello, I am searching the code to see where the AddApplied is being used. I am adding a new Interceptor and need to check if the "CrossCuttingConcern" is applied.

Thank you


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bilalhaidar,

    This class <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/src/Abp/Aspects/AbpCrossCuttingConcerns.cs">https://github.com/aspnetboilerplate/as ... oncerns.cs</a> is internal but you can create same logic for your interceptor.

  • User Avatar
    0
    bilalhaidar created

    Thanks Ismail. But I couldn't find anywhere else where "AddApplied" is being used? Or maybe I am missing the idea, how are concerns applied and where? Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    You are right, it seems like AddApplied is never used but IsApplied and Applying is used.

  • User Avatar
    0
    bilalhaidar created

    OK thank you. But how are cross-cutting concerns added to the system? I mean how does the IsApplied now that this concern is applied? I am building something similar and I need to understand how the framework knows that this cross cutting concern is applied or not.

    Thank you

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I'm not familiar with this part of code but it seems like it is called in AbpCrossCuttingConcerns.Applying method <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/src/Abp/Aspects/AbpCrossCuttingConcerns.cs#L61">https://github.com/aspnetboilerplate/as ... rns.cs#L61</a>.