U4-7577 Remove dependency on UmbracoContext in CreateServiceContext / RequestLifespanMessagesFactory

This commit is contained in:
Shannon
2016-02-16 15:07:42 +01:00
parent b550b3dde3
commit 6fffc8b45e
6 changed files with 41 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
using System.Web;
namespace Umbraco.Web
{
internal class SingletonHttpContextAccessor : IHttpContextAccessor
{
public HttpContextBase Value
{
get { return new HttpContextWrapper(HttpContext.Current); }
}
}
}