Resvolution - ServerRegistrarResolver

This commit is contained in:
Stephan
2016-08-24 12:28:31 +02:00
parent 9782fc7083
commit 352e02f064
12 changed files with 39 additions and 89 deletions

View File

@@ -2,6 +2,7 @@ using System;
using System.Web;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.UmbracoSettings;
using Umbraco.Core.DependencyInjection;
using Umbraco.Core.IO;
using Umbraco.Core.ObjectResolution;
@@ -114,8 +115,7 @@ namespace Umbraco.Core.Sync
// - contain a scheme
// - end or not with a slash, it will be taken care of
// eg "http://www.mysite.com/umbraco"
var registrar = ServerRegistrarResolver.Current.Registrar;
url = registrar.GetCurrentServerUmbracoApplicationUrl();
url = Current.ServerRegistrar.GetCurrentServerUmbracoApplicationUrl();
if (url.IsNullOrWhiteSpace() == false)
{
appContext._umbracoApplicationUrl = url.TrimEnd('/');