Base solution for your next web application

Activities of "maliming"

hi

I got your project, Please share some necessary steps, Thanks.

hi

Please make the GetOffers method virtual. in this way the Interceptor will works.

public virtual async Task<GetOffersForMobileOutput> GetOffers(GetOffersForMobileInput input)

unAuthorizedRequest will be true when AbpAuthorizationException happened. this is by design,

hi

can you explain why the method should be virtual for it to work?

Castle Windsor's interceptor can only intercept:

  1. All public or public virtual methods for classes that are used over an interface (Like an application service used over a service interface).
  2. All public virtual methods for self-injected classes (Like MVC Controllers and Web API Controllers).
  3. All protected virtual methods.

Because application services will use classes as MVC controllers, virtual methods are needed.

I wasn't expecting virtual, cause for AbpAuthorize we do not need to make it virtual. Can you elaborate on that?

Abp also uses MVC filters to intercept method calls. It does not require virtual methods. It is only suitable for controllers or Pages.

https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore/AspNetCore/Mvc/Authorization/AbpAuthorizationFilter.cs#L54

Showing 2991 to 2993 of 2993 entries