private void context_BeginRequest(object sender, System.EventArgs e)
 {
     if (DisplayProfilerHandler.ShouldStart(new HttpContextWrapper(HttpContext.Current)))
     {
         MiniProfiler.Start();
     }
 }
 private void context_OnPostAuthorizeRequest(object sender, EventArgs eventArgs)
 {
     if (!DisplayProfilerHandler.ShowToUser(new HttpContextWrapper(HttpContext.Current)))
     {
         MiniProfiler.Stop(discardResults: true);
     }
 }
 private void SetUpDefaultDisplayDelegate()
 {
     DisplayProfilerHandler.SetDefaultBehaviour();
 }