protected Application_EndRequest ( object sender, |
||
sender | object | The source of the event. |
e | The |
|
Результат | void |
protected virtual void Application_EndRequest(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(Thread.CurrentThread.Name))
return;
var startTime = long.Parse(Thread.CurrentThread.Name.ReplaceAll(@"[^\d]|", string.Empty));
var elapsed = new TimeSpan(DateTime.Now.Ticks - startTime);
log.InfoFormat("Request completed in {0}ms.", elapsed.Milliseconds);
}