IEventMessagesFactory without HttpContext

This commit is contained in:
Stephan
2016-11-16 09:57:24 +01:00
parent 28fe2f7d22
commit 7ea156d422
4 changed files with 50 additions and 7 deletions

View File

@@ -6,7 +6,11 @@ namespace Umbraco.Web
{
public HttpContextBase Value
{
get { return new HttpContextWrapper(HttpContext.Current); }
get
{
var httpContext = HttpContext.Current;
return httpContext == null ? null : new HttpContextWrapper(httpContext);
}
}
}
}