using System; using System.Web; namespace Umbraco.Web.Routing { /// /// A legacy class for old style handling of URL requests /// internal class LegacyRequestInitializer { private readonly Uri _requestUrl; private readonly HttpContextBase _httpContext; public LegacyRequestInitializer(Uri requestUrl, HttpContextBase httpContext) { _requestUrl = requestUrl; _httpContext = httpContext; } public void InitializeRequest() { var uri = _requestUrl; global::umbraco.presentation.UmbracoContext.Current = new global::umbraco.presentation.UmbracoContext(_httpContext); // legacy - umbOriginalUrl used by default.aspx to rewritepath so forms are happy // legacy - umbOriginalUrl used by presentation/umbraco/urlRewriter/UrlRewriterFormWriter which handles