diff --git a/src/Umbraco.Core/IMainDom.cs b/src/Umbraco.Abstractions/IMainDom.cs similarity index 100% rename from src/Umbraco.Core/IMainDom.cs rename to src/Umbraco.Abstractions/IMainDom.cs diff --git a/src/Umbraco.Core/SimpleMainDom.cs b/src/Umbraco.Abstractions/SimpleMainDom.cs similarity index 100% rename from src/Umbraco.Core/SimpleMainDom.cs rename to src/Umbraco.Abstractions/SimpleMainDom.cs diff --git a/src/Umbraco.Core/SystemUtilities.cs b/src/Umbraco.Core/SystemUtilities.cs deleted file mode 100644 index 30ce282063..0000000000 --- a/src/Umbraco.Core/SystemUtilities.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System.Security; -using System.Web; - -namespace Umbraco.Core -{ - /// - /// Static helper methods for returning information about the current System - /// - public static class SystemUtilities - { - private static bool _knowTrustLevel; - private static AspNetHostingPermissionLevel _trustLevel; - - /// - /// Get the current trust level of the hosted application - /// - /// - public static AspNetHostingPermissionLevel GetCurrentTrustLevel() - { - if (_knowTrustLevel) return _trustLevel; - - foreach (var trustLevel in new[] { - AspNetHostingPermissionLevel.Unrestricted, - AspNetHostingPermissionLevel.High, - AspNetHostingPermissionLevel.Medium, - AspNetHostingPermissionLevel.Low, - AspNetHostingPermissionLevel.Minimal }) - { - try - { - new AspNetHostingPermission(trustLevel).Demand(); - } - catch (SecurityException) - { - continue; - } - - _trustLevel = trustLevel; - _knowTrustLevel = true; - return _trustLevel; - } - - _trustLevel = AspNetHostingPermissionLevel.None; - _knowTrustLevel = true; - return _trustLevel; - } - } -} diff --git a/src/Umbraco.Core/Umbraco.Core.csproj b/src/Umbraco.Core/Umbraco.Core.csproj index 9262986b7a..f02fc7b0bc 100755 --- a/src/Umbraco.Core/Umbraco.Core.csproj +++ b/src/Umbraco.Core/Umbraco.Core.csproj @@ -328,7 +328,6 @@ - @@ -1442,7 +1441,6 @@ - @@ -1472,7 +1470,6 @@ - @@ -1517,7 +1514,7 @@ - +