U4-7577 Remove dependency on UmbracoContext in CreateServiceContext / RequestLifespanMessagesFactory
This commit is contained in:
12
src/Umbraco.Web/SingletonHttpContextAccessor.cs
Normal file
12
src/Umbraco.Web/SingletonHttpContextAccessor.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Web;
|
||||
|
||||
namespace Umbraco.Web
|
||||
{
|
||||
internal class SingletonHttpContextAccessor : IHttpContextAccessor
|
||||
{
|
||||
public HttpContextBase Value
|
||||
{
|
||||
get { return new HttpContextWrapper(HttpContext.Current); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user