PreRequestHandlerExecute event not fired for REST calls

Last post 07-21-2009 9:21 PM by derianto. 1 replies.

Sort Posts:

  • PreRequestHandlerExecute event not fired for REST calls

    07-10-2009, 7:54 AM

    I have an existing Http module which have a PreRequestHandlerExecuteHandler, which does some security checking for our application, and I tried to reuse the same for a new RESTful service project. I can use a starter kit "RequestInterceptor" for the same, but I wanted to do this through the existing module so tried it out. But the problem is PreRequestHandlerExecute event is not getting fired for REST calls. but something I noted is that, if I were to have a BeginRequest event handler to do a "HttpContext.Current.RewritePath" then it'll fire the PreRequestHandlerExecute. Does anyone have an explanation for this, or a better way to do it. my primary target is to use the existing PreRequestHandlerExecuteHandler" without changing it.

  • Re: PreRequestHandlerExecute event not fired for REST calls

    07-21-2009, 9:21 PM
    • Member
      10 point Member
    • derianto
    • Member since 07-21-2009, 4:44 PM
    • Posts 5

    Hi chathurangakw,

    Can you post some code that illustrates how PreRequestHandlerExecuteHandler works in your module, which doesn't quite fit with RequestInterceptor, to give us a better understanding of your scenario? 

    I'm not familiar with ASP.NET service but I'm backed up by the REST starter kit team who may be able to help you.

    Thanks,

    Deri

     

Page 1 of 1 (2 items)