public void HandleActualRequest(IHttpContext ctx)
{
var sw = Stopwatch.StartNew();
bool ravenUiRequest = false;
try
{
ravenUiRequest = DispatchRequest(ctx);
}
catch (Exception e)
{
HandleException(ctx, e);
if (ShouldLogException(e))
logger.WarnException("Error on request", e);
}
finally
{
try
{
FinalizeRequestProcessing(ctx, sw, ravenUiRequest);
}
catch (Exception e)
{
logger.ErrorException("Could not finalize request properly", e);
}
}
}