Refactor UmbracoContext to inject IHttpAccessor instead of HttpContext

This commit is contained in:
Bjarke Berg
2020-02-13 13:57:39 +01:00
parent 31130be85a
commit 53a9e75a48
24 changed files with 101 additions and 105 deletions

View File

@@ -82,7 +82,7 @@ namespace Umbraco.Web
// TODO: should we move this to after we've ensured we are processing a routable page?
// ensure there's an UmbracoContext registered for the current request
// registers the context reference so its disposed at end of request
var umbracoContextReference = _umbracoContextFactory.EnsureUmbracoContext(httpContext);
var umbracoContextReference = _umbracoContextFactory.EnsureUmbracoContext();
httpContext.DisposeOnPipelineCompleted(umbracoContextReference);
}