X-Builder-Inspect do not work in OnBeforeResponse()

3 posts, 0 answers
  1. Балчугов
    Балчугов avatar
    2 posts
    Member since:
    May 2014

    Posted 26 May 2014 Link to this post

    I want to autoinspect session if it allow by filter. If I try to put oSession.oFlags["X-Builder-Inspect"] = "1"; in a OnBeforeRequest() - autoinspect works, but it trying to inspect sessions that didn't allow by filter. So i tried to put oSession.oFlags["X-Builder-Inspect"] = "1"; in OnBeforeResponse() but then autoispect doesnt work. What's the reason? May be there is other ways to autoinspect allowed sessions?
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 30 May 2014 Link to this post

    Hello,

    I'm not really sure what you mean when you say "if it allow by filter." What "filter" are you using?

    To do what you're looking for, put the following inside OnBeforeRequest:

      if (!oSession.oFlags.ContainsKey("ui-hide"))
      {
        oSession["X-Builder-Inspect"] = "1";
      }


    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Балчугов
    Балчугов avatar
    2 posts
    Member since:
    May 2014

    Posted 01 Jun 2014 in reply to Eric Lawrence Link to this post

    Thanks! It was helpful.
Back to Top