This is a migrated thread and some comments may be shown as answers.

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

2 Answers 90 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Балчугов
Top achievements
Rank 1
Балчугов asked on 27 May 2014, 04:08 AM
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 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 30 May 2014, 01:12 PM
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.

 
0
Балчугов
Top achievements
Rank 1
answered on 02 Jun 2014, 03:45 AM
Thanks! It was helpful.
Tags
Windows
Asked by
Балчугов
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Балчугов
Top achievements
Rank 1
Share this question
or