Base solution for your next web application
Open Closed

How the real method of Application class is called on api? #1486


User avatar
0
coolshun created

How the real method of Application class is called when the dynamic web api is called?the DynamicApiController is not have the real method. In ReflectedHttpActionDescriptor,the ControllerType of HttpControllerDescriptor is not have the method of the MethodInfo,then,How the method of the MethodInfo is called by DynamicApiController ?


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Using Castle Windsor and Combining interceptor and dynamic proxying. This is where we do it: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web.Api/WebApi/Controllers/Dynamic/Interceptors/AbpDynamicApiControllerInterceptor.cs#L39">https://github.com/aspnetboilerplate/as ... tor.cs#L39</a>