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
at Elmah.Contrib.WebApi.ElmahHandleErrorApiAttribute.IsFiltered(HttpActionExecutedContext context)
at Elmah.Contrib.WebApi.ElmahHandleErrorApiAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
private static bool IsFiltered(HttpActionExecutedContext context)
{
var config = HttpContext.Current.GetSection("elmah/errorFilter") as ErrorFilterConfiguration;
if (config == null) return false;
var testContext = new ErrorFilterModule.AssertionHelperContext( context.Exception, HttpContext.Current);
return config.Assertion.Test(testContext);
}
The text was updated successfully, but these errors were encountered:
karthikeyanmadhavan
changed the title
Seems like isFiltered in ElmahHandleErrorApiAttribute throws Exception when no current HttpContext when Async is used
When Async is used, Seems like isFiltered in ElmahHandleErrorApiAttribute throws Exception when no current HttpContext
Nov 1, 2017
at Elmah.Contrib.WebApi.ElmahHandleErrorApiAttribute.IsFiltered(HttpActionExecutedContext context)
at Elmah.Contrib.WebApi.ElmahHandleErrorApiAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
private static bool IsFiltered(HttpActionExecutedContext context)
{
var config = HttpContext.Current.GetSection("elmah/errorFilter") as ErrorFilterConfiguration;
if (config == null) return false;
var testContext = new ErrorFilterModule.AssertionHelperContext( context.Exception, HttpContext.Current);
return config.Assertion.Test(testContext);
}
The text was updated successfully, but these errors were encountered: