You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
A development team's shared development environment occasionally wants to have MiniProfiler available on a site for testing purposes, but wants to be able to turn it on conditionally with it defaulting to off (so it isn't running during every request).
Currently, because XbyK's MiniProfiler is turned on/off at app-start (in Program.cs), it is only activateable/deactivatable via an app restart.
Describe the solution you'd like
Potential solutions:
An in-CMS setting of some sort (This would be the ideal, if a setting like that can be exposed somehow)
A server cookie that, when active, enables MiniProfiler for that request. When missing, MiniProfiler does not run during that request
A querystring that enables MiniProfiler for the duration of that request
Some API endpoint in the MiniProfiler that would say 'activate/deactivate miniprofiler', to which we could attach our own logic
Describe alternatives you've considered
Editing the configuration files to add a setting that turns it on/off (and restarting the site if necessary) is cumbersome on sites where the environments are in a remote location (like Azure) with locked-down file access.
The text was updated successfully, but these errors were encountered:
Hello @ChristopherBass, thank you for your feature suggestion. Does @seangwright's explanation help you solve this issue by yourself?
We are currently not inclined in delivering your proposed solution, unless we see more customers having the same need. Thanks for understanding.
I haven't had an opportunity to try it myself but I trust Sean's explanation, I'm sure I'll be able to use it when I'm back on that project.
Is this a common enough need to be worth adding his explanation to documentation?
Is your feature request related to a problem? Please describe.
A development team's shared development environment occasionally wants to have MiniProfiler available on a site for testing purposes, but wants to be able to turn it on conditionally with it defaulting to off (so it isn't running during every request).
Currently, because XbyK's MiniProfiler is turned on/off at app-start (in Program.cs), it is only activateable/deactivatable via an app restart.
Describe the solution you'd like
Potential solutions:
Describe alternatives you've considered
Editing the configuration files to add a setting that turns it on/off (and restarting the site if necessary) is cumbersome on sites where the environments are in a remote location (like Azure) with locked-down file access.
The text was updated successfully, but these errors were encountered: