Exemple #1
0
 public void OnMethodExit(string requestUrl, string assemblyName, string classTypeName, string methodName)
 {
     if (PerfProfiler.Disabled == false)
     {
         if (info != null)
         {
             info.Stop();
             ProfilerMessage msg = info.ToMessage(requestUrl, assemblyName, classTypeName, methodName);
             if (s_Queue != null)
             {
                 s_Queue.Enqueue(msg);
             }
         }
     }
 }
Exemple #2
0
 public void OnActionExecuted(ActionExecutedContext filterContext)
 {
     if (PerfProfiler.Disabled == false)
     {
         ExecutionInfo info = filterContext.RequestContext.HttpContext.Items["ibb360_PerfProfilerActionFilter"] as ExecutionInfo;
         if (info != null)
         {
             info.Stop();
             ProfilerMessage msg = info.ToMessage(filterContext.RequestContext.HttpContext.Request.RawUrl, "none", "none", "none");
             if (m_Queue != null)
             {
                 m_Queue.Enqueue(msg);
             }
         }
     }
 }