diff --git a/build/NuSpecs/UmbracoCms.Web.nuspec b/build/NuSpecs/UmbracoCms.Web.nuspec
index 1d136daf95..92cb0f065e 100644
--- a/build/NuSpecs/UmbracoCms.Web.nuspec
+++ b/build/NuSpecs/UmbracoCms.Web.nuspec
@@ -43,18 +43,15 @@
-
-
-
diff --git a/build/build-bootstrap.ps1 b/build/build-bootstrap.ps1
index 645f6c7d41..4c946ba289 100644
--- a/build/build-bootstrap.ps1
+++ b/build/build-bootstrap.ps1
@@ -23,7 +23,7 @@
$cache = 4
$nuget = "$scriptTemp\nuget.exe"
# ensure the correct NuGet-source is used. This one is used by Umbraco
- $nugetsourceUmbraco = "https://www.myget.org/F/umbracocore/api/v3/index.json"
+ $nugetsourceUmbraco = "https://www.myget.org/F/umbracoprereleases/api/v3/index.json"
if (-not $local)
{
$source = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
diff --git a/build/build.ps1 b/build/build.ps1
index ae59874e6a..58d56fcdfe 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -51,12 +51,12 @@
{
param ( $semver )
- $release = "" + $semver.Major + "." + $semver.Minor + "." + $semver.Patch
-
- Write-Host "Update IIS Express port in csproj"
- $updater = New-Object "Umbraco.Build.ExpressPortUpdater"
- $csproj = "$($this.SolutionRoot)\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj"
- $updater.Update($csproj, $release)
+ $port = "" + $semver.Major + $semver.Minor + ("" + $semver.Patch).PadLeft(2, '0')
+ Write-Host "Update port in launchSettings.json to $port"
+ $filePath = "$($this.SolutionRoot)\src\Umbraco.Web.UI.NetCore\Properties\launchSettings.json"
+ $this.ReplaceFileText($filePath, `
+ "http://localhost:(\d+)?", `
+ "http://localhost:$port")
})
$ubuild.DefineMethod("SandboxNode",
@@ -478,7 +478,7 @@
{
$this.VerifyNuGetConsistency(
("UmbracoCms", "UmbracoCms.Core", "UmbracoCms.Web"),
- ("Umbraco.Core", "Umbraco.Infrastructure", "Umbraco.Web.UI.NetCore", "Umbraco.Examine.Lucene", "Umbraco.PublishedCache.NuCache", "Umbraco.Web.Common", "Umbraco.Web.Website", "Umbraco.Web.BackOffice", "Umbraco.ModelsBuilder.Embedded", "Umbraco.Persistence.SqlCe"))
+ ("Umbraco.Core", "Umbraco.Infrastructure", "Umbraco.Web.UI.NetCore", "Umbraco.Examine.Lucene", "Umbraco.PublishedCache.NuCache", "Umbraco.Web.Common", "Umbraco.Web.Website", "Umbraco.Web.BackOffice", "Umbraco.Persistence.SqlCe"))
if ($this.OnError()) { return }
})
diff --git a/build/templates/UmbracoSolution/UmbracoSolution.csproj b/build/templates/UmbracoSolution/UmbracoSolution.csproj
index 87271c3dd7..278720afef 100644
--- a/build/templates/UmbracoSolution/UmbracoSolution.csproj
+++ b/build/templates/UmbracoSolution/UmbracoSolution.csproj
@@ -26,6 +26,16 @@
+
+ true
+ PreserveNewest
+ Always
+
+
+ true
+ PreserveNewest
+ Always
+
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
new file mode 100644
index 0000000000..cdce38df2f
--- /dev/null
+++ b/src/Directory.Build.props
@@ -0,0 +1,13 @@
+
+
+ 9.0.0
+ 9.0.0
+ 9.0.0-beta001
+ 9.0.0
+ 9.0
+ en-US
+ Umbraco CMS
+ Copyright © Umbraco 2021
+
+
+
diff --git a/src/SolutionInfo.cs b/src/SolutionInfo.cs
deleted file mode 100644
index 3a1f151388..0000000000
--- a/src/SolutionInfo.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System.Reflection;
-using System.Resources;
-
-[assembly: AssemblyCompany("Umbraco")]
-[assembly: AssemblyCopyright("Copyright © Umbraco 2021")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-[assembly: NeutralResourcesLanguage("en-US")]
-
-// versions
-// read https://stackoverflow.com/questions/64602/what-are-differences-between-assemblyversion-assemblyfileversion-and-assemblyin
-
-// note: do NOT change anything here manually, use the build scripts
-
-// this is the ONLY ONE the CLR cares about for compatibility
-// should change ONLY when "hard" breaking compatibility (manual change)
-[assembly: AssemblyVersion("0.5.0")]
-
-// these are FYI and changed automatically
-[assembly: AssemblyFileVersion("0.5.0")]
-[assembly: AssemblyInformationalVersion("0.5.0-alpha003")]
diff --git a/src/Umbraco.Core/Actions/ActionAssignDomain.cs b/src/Umbraco.Core/Actions/ActionAssignDomain.cs
index 7dc3668e5d..e03e2de81c 100644
--- a/src/Umbraco.Core/Actions/ActionAssignDomain.cs
+++ b/src/Umbraco.Core/Actions/ActionAssignDomain.cs
@@ -1,8 +1,4 @@
-using Umbraco.Core;
-using Umbraco.Core.CodeAnnotations;
-
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when a domain is being assigned to a document
diff --git a/src/Umbraco.Core/Actions/ActionBrowse.cs b/src/Umbraco.Core/Actions/ActionBrowse.cs
index 64882c142a..2716d17e81 100644
--- a/src/Umbraco.Core/Actions/ActionBrowse.cs
+++ b/src/Umbraco.Core/Actions/ActionBrowse.cs
@@ -1,8 +1,4 @@
-using Umbraco.Core;
-using Umbraco.Core.CodeAnnotations;
-
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is used as a security constraint that grants a user the ability to view nodes in a tree
diff --git a/src/Umbraco.Core/Actions/ActionChangeDocType.cs b/src/Umbraco.Core/Actions/ActionChangeDocType.cs
index 60f6d52d3f..9372524e13 100644
--- a/src/Umbraco.Core/Actions/ActionChangeDocType.cs
+++ b/src/Umbraco.Core/Actions/ActionChangeDocType.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
// TODO: Add this back in when we support this functionality again
/////
diff --git a/src/Umbraco.Core/Actions/ActionCollection.cs b/src/Umbraco.Core/Actions/ActionCollection.cs
index 1ba60317f5..3987e89305 100644
--- a/src/Umbraco.Core/Actions/ActionCollection.cs
+++ b/src/Umbraco.Core/Actions/ActionCollection.cs
@@ -1,11 +1,10 @@
using System.Collections.Generic;
using System.Linq;
-using Umbraco.Core;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Models.Membership;
+using Umbraco.Cms.Core.Composing;
+using Umbraco.Cms.Core.Models.Membership;
+using Umbraco.Extensions;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
public class ActionCollection : BuilderCollectionBase
{
diff --git a/src/Umbraco.Core/Actions/ActionCollectionBuilder.cs b/src/Umbraco.Core/Actions/ActionCollectionBuilder.cs
index 1fe3008610..92ba18331a 100644
--- a/src/Umbraco.Core/Actions/ActionCollectionBuilder.cs
+++ b/src/Umbraco.Core/Actions/ActionCollectionBuilder.cs
@@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Umbraco.Core.Composing;
-namespace Umbraco.Web.Actions
+using Umbraco.Cms.Core.Composing;
+
+namespace Umbraco.Cms.Core.Actions
{
public class ActionCollectionBuilder : LazyCollectionBuilderBase
{
diff --git a/src/Umbraco.Core/Actions/ActionCopy.cs b/src/Umbraco.Core/Actions/ActionCopy.cs
index a568d0aa37..a88d725f96 100644
--- a/src/Umbraco.Core/Actions/ActionCopy.cs
+++ b/src/Umbraco.Core/Actions/ActionCopy.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when copying a document, media, member
diff --git a/src/Umbraco.Core/Actions/ActionCreateBlueprintFromContent.cs b/src/Umbraco.Core/Actions/ActionCreateBlueprintFromContent.cs
index 0a46393a81..7e9035d6d0 100644
--- a/src/Umbraco.Core/Actions/ActionCreateBlueprintFromContent.cs
+++ b/src/Umbraco.Core/Actions/ActionCreateBlueprintFromContent.cs
@@ -1,8 +1,4 @@
-using Umbraco.Core;
-using Umbraco.Core.CodeAnnotations;
-
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
public class ActionCreateBlueprintFromContent : IAction
{
diff --git a/src/Umbraco.Core/Actions/ActionDelete.cs b/src/Umbraco.Core/Actions/ActionDelete.cs
index 470f1453d6..4fa77d7528 100644
--- a/src/Umbraco.Core/Actions/ActionDelete.cs
+++ b/src/Umbraco.Core/Actions/ActionDelete.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when a document, media, member is deleted
diff --git a/src/Umbraco.Core/Actions/ActionMove.cs b/src/Umbraco.Core/Actions/ActionMove.cs
index 74c783aab9..943ad98c9f 100644
--- a/src/Umbraco.Core/Actions/ActionMove.cs
+++ b/src/Umbraco.Core/Actions/ActionMove.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked upon creation of a document, media, member
diff --git a/src/Umbraco.Core/Actions/ActionNew.cs b/src/Umbraco.Core/Actions/ActionNew.cs
index ab208a79a3..2a11620483 100644
--- a/src/Umbraco.Core/Actions/ActionNew.cs
+++ b/src/Umbraco.Core/Actions/ActionNew.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked upon creation of a document
diff --git a/src/Umbraco.Core/Actions/ActionProtect.cs b/src/Umbraco.Core/Actions/ActionProtect.cs
index dc6c7ff4e7..4108853a4c 100644
--- a/src/Umbraco.Core/Actions/ActionProtect.cs
+++ b/src/Umbraco.Core/Actions/ActionProtect.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when a document is protected or unprotected
diff --git a/src/Umbraco.Core/Actions/ActionPublish.cs b/src/Umbraco.Core/Actions/ActionPublish.cs
index 5c9ce08c35..ef2bd23cbb 100644
--- a/src/Umbraco.Core/Actions/ActionPublish.cs
+++ b/src/Umbraco.Core/Actions/ActionPublish.cs
@@ -1,8 +1,4 @@
-using Umbraco.Core;
-using Umbraco.Core.CodeAnnotations;
-
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when a document is being published
diff --git a/src/Umbraco.Core/Actions/ActionRestore.cs b/src/Umbraco.Core/Actions/ActionRestore.cs
index aa309131f2..9f90dc92f1 100644
--- a/src/Umbraco.Core/Actions/ActionRestore.cs
+++ b/src/Umbraco.Core/Actions/ActionRestore.cs
@@ -1,6 +1,6 @@
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when the content/media item is to be restored from the recycle bin
diff --git a/src/Umbraco.Core/Actions/ActionRights.cs b/src/Umbraco.Core/Actions/ActionRights.cs
index dd021d03c0..ed860fe2ea 100644
--- a/src/Umbraco.Core/Actions/ActionRights.cs
+++ b/src/Umbraco.Core/Actions/ActionRights.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when rights are changed on a document
diff --git a/src/Umbraco.Core/Actions/ActionRollback.cs b/src/Umbraco.Core/Actions/ActionRollback.cs
index 18d9efdb8d..55aac4cab9 100644
--- a/src/Umbraco.Core/Actions/ActionRollback.cs
+++ b/src/Umbraco.Core/Actions/ActionRollback.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when copying a document is being rolled back
diff --git a/src/Umbraco.Core/Actions/ActionSort.cs b/src/Umbraco.Core/Actions/ActionSort.cs
index 9c463bc18e..e4df6246b7 100644
--- a/src/Umbraco.Core/Actions/ActionSort.cs
+++ b/src/Umbraco.Core/Actions/ActionSort.cs
@@ -1,8 +1,4 @@
-using Umbraco.Core;
-using Umbraco.Core.CodeAnnotations;
-
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when children to a document, media, member is being sorted
diff --git a/src/Umbraco.Core/Actions/ActionToPublish.cs b/src/Umbraco.Core/Actions/ActionToPublish.cs
index 61475c81f5..9b263b57bf 100644
--- a/src/Umbraco.Core/Actions/ActionToPublish.cs
+++ b/src/Umbraco.Core/Actions/ActionToPublish.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when children to a document is being sent to published (by an editor without publishrights)
diff --git a/src/Umbraco.Core/Actions/ActionUnpublish.cs b/src/Umbraco.Core/Actions/ActionUnpublish.cs
index f9270d926b..7d70b35937 100644
--- a/src/Umbraco.Core/Actions/ActionUnpublish.cs
+++ b/src/Umbraco.Core/Actions/ActionUnpublish.cs
@@ -1,8 +1,4 @@
-using Umbraco.Core;
-using Umbraco.Core.CodeAnnotations;
-
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
diff --git a/src/Umbraco.Core/Actions/ActionUpdate.cs b/src/Umbraco.Core/Actions/ActionUpdate.cs
index 2241c75955..0b77c84bdb 100644
--- a/src/Umbraco.Core/Actions/ActionUpdate.cs
+++ b/src/Umbraco.Core/Actions/ActionUpdate.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core;
-
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// This action is invoked when copying a document or media
diff --git a/src/Umbraco.Core/Actions/IAction.cs b/src/Umbraco.Core/Actions/IAction.cs
index 986ed9b509..8a68b34196 100644
--- a/src/Umbraco.Core/Actions/IAction.cs
+++ b/src/Umbraco.Core/Actions/IAction.cs
@@ -1,6 +1,6 @@
-using Umbraco.Core.Composing;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Actions
+namespace Umbraco.Cms.Core.Actions
{
///
/// Defines a back office action that can be permission assigned or subscribed to for notifications
diff --git a/src/Umbraco.Core/Attempt.cs b/src/Umbraco.Core/Attempt.cs
index d13ec6394c..eddd2c8785 100644
--- a/src/Umbraco.Core/Attempt.cs
+++ b/src/Umbraco.Core/Attempt.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
///
/// Provides ways to create attempts.
diff --git a/src/Umbraco.Core/AttemptOfTResult.cs b/src/Umbraco.Core/AttemptOfTResult.cs
index 79fae017e2..cebabe214b 100644
--- a/src/Umbraco.Core/AttemptOfTResult.cs
+++ b/src/Umbraco.Core/AttemptOfTResult.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
///
/// Represents the result of an operation attempt.
diff --git a/src/Umbraco.Core/AttemptOfTResultTStatus.cs b/src/Umbraco.Core/AttemptOfTResultTStatus.cs
index 8ce21e36c3..1278da86a5 100644
--- a/src/Umbraco.Core/AttemptOfTResultTStatus.cs
+++ b/src/Umbraco.Core/AttemptOfTResultTStatus.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
///
/// Represents the result of an operation attempt.
diff --git a/src/Umbraco.Core/Cache/AppCacheExtensions.cs b/src/Umbraco.Core/Cache/AppCacheExtensions.cs
index cbefb5d5c0..7e6e115fd9 100644
--- a/src/Umbraco.Core/Cache/AppCacheExtensions.cs
+++ b/src/Umbraco.Core/Cache/AppCacheExtensions.cs
@@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using Umbraco.Cms.Core.Cache;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Extensions
{
///
/// Extensions for strongly typed access
diff --git a/src/Umbraco.Core/Cache/AppCaches.cs b/src/Umbraco.Core/Cache/AppCaches.cs
index 2d482756c1..974d8bd6aa 100644
--- a/src/Umbraco.Core/Cache/AppCaches.cs
+++ b/src/Umbraco.Core/Cache/AppCaches.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Represents the application caches.
diff --git a/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs b/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs
index fa13ebf088..1be1752b22 100644
--- a/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs
+++ b/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections.Concurrent;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Provides a base class for implementing a dictionary of .
diff --git a/src/Umbraco.Core/Cache/ApplicationCacheRefresher.cs b/src/Umbraco.Core/Cache/ApplicationCacheRefresher.cs
index 751b2194b7..360fd44ba8 100644
--- a/src/Umbraco.Core/Cache/ApplicationCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/ApplicationCacheRefresher.cs
@@ -1,7 +1,6 @@
using System;
-using Umbraco.Core.Cache;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class ApplicationCacheRefresher : CacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/CacheKeys.cs b/src/Umbraco.Core/Cache/CacheKeys.cs
index ec57d633b9..9f082df104 100644
--- a/src/Umbraco.Core/Cache/CacheKeys.cs
+++ b/src/Umbraco.Core/Cache/CacheKeys.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Constants storing cache keys used in caching
diff --git a/src/Umbraco.Core/Cache/CacheRefresherBase.cs b/src/Umbraco.Core/Cache/CacheRefresherBase.cs
index bfa16ff3fa..d3a09dbf8f 100644
--- a/src/Umbraco.Core/Cache/CacheRefresherBase.cs
+++ b/src/Umbraco.Core/Cache/CacheRefresherBase.cs
@@ -1,9 +1,9 @@
using System;
-using Umbraco.Core.Events;
-using Umbraco.Core.Models.Entities;
-using Umbraco.Core.Sync;
+using Umbraco.Cms.Core.Events;
+using Umbraco.Cms.Core.Models.Entities;
+using Umbraco.Cms.Core.Sync;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// A base class for cache refreshers that handles events.
diff --git a/src/Umbraco.Core/Cache/CacheRefresherCollection.cs b/src/Umbraco.Core/Cache/CacheRefresherCollection.cs
index e0b3cd48fd..2c9007cbe9 100644
--- a/src/Umbraco.Core/Cache/CacheRefresherCollection.cs
+++ b/src/Umbraco.Core/Cache/CacheRefresherCollection.cs
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Umbraco.Core.Composing;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
public class CacheRefresherCollection : BuilderCollectionBase
{
diff --git a/src/Umbraco.Core/Cache/CacheRefresherCollectionBuilder.cs b/src/Umbraco.Core/Cache/CacheRefresherCollectionBuilder.cs
index 8bae755149..34a274a177 100644
--- a/src/Umbraco.Core/Cache/CacheRefresherCollectionBuilder.cs
+++ b/src/Umbraco.Core/Cache/CacheRefresherCollectionBuilder.cs
@@ -1,6 +1,6 @@
-using Umbraco.Core.Composing;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
public class CacheRefresherCollectionBuilder : LazyCollectionBuilderBase
{
diff --git a/src/Umbraco.Core/Cache/CacheRefresherEventArgs.cs b/src/Umbraco.Core/Cache/CacheRefresherEventArgs.cs
index 7dea4229ab..e1d04a7095 100644
--- a/src/Umbraco.Core/Cache/CacheRefresherEventArgs.cs
+++ b/src/Umbraco.Core/Cache/CacheRefresherEventArgs.cs
@@ -1,7 +1,7 @@
using System;
-using Umbraco.Core.Sync;
+using Umbraco.Cms.Core.Sync;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Event args for cache refresher updates
diff --git a/src/Umbraco.Core/Cache/ContentCacheRefresher.cs b/src/Umbraco.Core/Cache/ContentCacheRefresher.cs
index 6e04a06b95..e77fa7abef 100644
--- a/src/Umbraco.Core/Cache/ContentCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/ContentCacheRefresher.cs
@@ -1,16 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Umbraco.Core;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Persistence.Repositories.Implement;
-using Umbraco.Core.Serialization;
-using Umbraco.Core.Services;
-using Umbraco.Core.Services.Changes;
-using Umbraco.Web.PublishedCache;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Persistence.Repositories;
+using Umbraco.Cms.Core.PublishedCache;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Cms.Core.Services;
+using Umbraco.Cms.Core.Services.Changes;
+using Umbraco.Extensions;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class ContentCacheRefresher : PayloadCacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs b/src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs
index 8681f2626e..8a1ba1234e 100644
--- a/src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs
@@ -1,16 +1,15 @@
using System;
using System.Linq;
-using Umbraco.Core;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.PublishedContent;
-using Umbraco.Core.Persistence.Repositories;
-using Umbraco.Core.Serialization;
-using Umbraco.Core.Services;
-using Umbraco.Core.Services.Changes;
-using Umbraco.Web.PublishedCache;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.PublishedContent;
+using Umbraco.Cms.Core.Persistence.Repositories;
+using Umbraco.Cms.Core.PublishedCache;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Cms.Core.Services;
+using Umbraco.Cms.Core.Services.Changes;
+using Umbraco.Extensions;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class ContentTypeCacheRefresher : PayloadCacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs b/src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs
index 7455722ef7..d5e11e17d3 100644
--- a/src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs
@@ -1,15 +1,13 @@
using System;
-using Umbraco.Core;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.PublishedContent;
-using Umbraco.Core.PropertyEditors.ValueConverters;
-using Umbraco.Core.Serialization;
-using Umbraco.Core.Services;
-using Umbraco.Web.PublishedCache;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.PublishedContent;
+using Umbraco.Cms.Core.PropertyEditors.ValueConverters;
+using Umbraco.Cms.Core.PublishedCache;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Cms.Core.Services;
+using Umbraco.Extensions;
-
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class DataTypeCacheRefresher : PayloadCacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/DeepCloneAppCache.cs b/src/Umbraco.Core/Cache/DeepCloneAppCache.cs
index e70b40160e..451af437b2 100644
--- a/src/Umbraco.Core/Cache/DeepCloneAppCache.cs
+++ b/src/Umbraco.Core/Cache/DeepCloneAppCache.cs
@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.Entities;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.Entities;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Implements by wrapping an inner other
diff --git a/src/Umbraco.Core/Cache/DictionaryAppCache.cs b/src/Umbraco.Core/Cache/DictionaryAppCache.cs
index 04ee3e0afa..8857da0187 100644
--- a/src/Umbraco.Core/Cache/DictionaryAppCache.cs
+++ b/src/Umbraco.Core/Cache/DictionaryAppCache.cs
@@ -3,8 +3,9 @@ using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text.RegularExpressions;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Implements on top of a concurrent dictionary.
diff --git a/src/Umbraco.Core/Cache/DictionaryCacheRefresher.cs b/src/Umbraco.Core/Cache/DictionaryCacheRefresher.cs
index 525b4d2157..922afab8da 100644
--- a/src/Umbraco.Core/Cache/DictionaryCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/DictionaryCacheRefresher.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
+using Umbraco.Cms.Core.Models;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class DictionaryCacheRefresher : CacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/DistributedCache.cs b/src/Umbraco.Core/Cache/DistributedCache.cs
index 7ad9f9569f..bfd1162bc4 100644
--- a/src/Umbraco.Core/Cache/DistributedCache.cs
+++ b/src/Umbraco.Core/Cache/DistributedCache.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Umbraco.Core;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Sync;
+using Umbraco.Cms.Core.Sync;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Represents the entry point into Umbraco's distributed cache infrastructure.
diff --git a/src/Umbraco.Core/Cache/DomainCacheRefresher.cs b/src/Umbraco.Core/Cache/DomainCacheRefresher.cs
index 7958728765..2773ca2d0f 100644
--- a/src/Umbraco.Core/Cache/DomainCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/DomainCacheRefresher.cs
@@ -1,11 +1,10 @@
using System;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Serialization;
-using Umbraco.Core.Services.Changes;
-using Umbraco.Web.PublishedCache;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.PublishedCache;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Cms.Core.Services.Changes;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class DomainCacheRefresher : PayloadCacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/FastDictionaryAppCache.cs b/src/Umbraco.Core/Cache/FastDictionaryAppCache.cs
index 54009af465..ddd9f96c73 100644
--- a/src/Umbraco.Core/Cache/FastDictionaryAppCache.cs
+++ b/src/Umbraco.Core/Cache/FastDictionaryAppCache.cs
@@ -3,9 +3,9 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
-using Umbraco.Core.Composing;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Implements a fast on top of a concurrent dictionary.
diff --git a/src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs b/src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs
index 4b8098e19d..7ebbcc8b63 100644
--- a/src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs
+++ b/src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs
@@ -1,11 +1,10 @@
using System;
-using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
-using Umbraco.Core.Composing;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Provides a base class to fast, dictionary-based implementations.
diff --git a/src/Umbraco.Core/Cache/GenericDictionaryRequestAppCache.cs b/src/Umbraco.Core/Cache/GenericDictionaryRequestAppCache.cs
index 31914eb5b0..17558a78d4 100644
--- a/src/Umbraco.Core/Cache/GenericDictionaryRequestAppCache.cs
+++ b/src/Umbraco.Core/Cache/GenericDictionaryRequestAppCache.cs
@@ -3,9 +3,8 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
-using Umbraco.Core.Composing;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Implements a fast on top of HttpContext.Items.
diff --git a/src/Umbraco.Core/Cache/HttpRequestAppCache.cs b/src/Umbraco.Core/Cache/HttpRequestAppCache.cs
index 00d427c965..2e053c3486 100644
--- a/src/Umbraco.Core/Cache/HttpRequestAppCache.cs
+++ b/src/Umbraco.Core/Cache/HttpRequestAppCache.cs
@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Implements a fast on top of HttpContext.Items.
diff --git a/src/Umbraco.Core/Cache/IAppCache.cs b/src/Umbraco.Core/Cache/IAppCache.cs
index c84ec1135c..9b9b03af35 100644
--- a/src/Umbraco.Core/Cache/IAppCache.cs
+++ b/src/Umbraco.Core/Cache/IAppCache.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Defines an application cache.
diff --git a/src/Umbraco.Core/Cache/IAppPolicyCache.cs b/src/Umbraco.Core/Cache/IAppPolicyCache.cs
index 9746e80804..a345ca1333 100644
--- a/src/Umbraco.Core/Cache/IAppPolicyCache.cs
+++ b/src/Umbraco.Core/Cache/IAppPolicyCache.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Defines an application cache that support cache policies.
diff --git a/src/Umbraco.Core/Cache/ICacheRefresher.cs b/src/Umbraco.Core/Cache/ICacheRefresher.cs
index 257d1da05a..97a3bf08eb 100644
--- a/src/Umbraco.Core/Cache/ICacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/ICacheRefresher.cs
@@ -1,7 +1,7 @@
using System;
-using Umbraco.Core.Composing;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// The IcacheRefresher Interface is used for load balancing.
diff --git a/src/Umbraco.Core/Cache/IDistributedCacheBinder.cs b/src/Umbraco.Core/Cache/IDistributedCacheBinder.cs
index cb83799f85..405e72ba06 100644
--- a/src/Umbraco.Core/Cache/IDistributedCacheBinder.cs
+++ b/src/Umbraco.Core/Cache/IDistributedCacheBinder.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
-using Umbraco.Core.Events;
+using Umbraco.Cms.Core.Events;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Binds events to the distributed cache.
diff --git a/src/Umbraco.Core/Cache/IJsonCacheRefresher.cs b/src/Umbraco.Core/Cache/IJsonCacheRefresher.cs
index 005d3c5101..619fc1eb56 100644
--- a/src/Umbraco.Core/Cache/IJsonCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/IJsonCacheRefresher.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// A cache refresher that supports refreshing or removing cache based on a custom Json payload
diff --git a/src/Umbraco.Core/Cache/IPayloadCacheRefresher.cs b/src/Umbraco.Core/Cache/IPayloadCacheRefresher.cs
index a30245a239..21dfdd840d 100644
--- a/src/Umbraco.Core/Cache/IPayloadCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/IPayloadCacheRefresher.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// A cache refresher that supports refreshing cache based on a custom payload
diff --git a/src/Umbraco.Core/Cache/IRepositoryCachePolicy.cs b/src/Umbraco.Core/Cache/IRepositoryCachePolicy.cs
index a31e715383..dff547c1ce 100644
--- a/src/Umbraco.Core/Cache/IRepositoryCachePolicy.cs
+++ b/src/Umbraco.Core/Cache/IRepositoryCachePolicy.cs
@@ -1,9 +1,8 @@
using System;
using System.Collections.Generic;
-using Umbraco.Core.Models.Entities;
-using Umbraco.Core.Scoping;
+using Umbraco.Cms.Core.Models.Entities;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
public interface IRepositoryCachePolicy
where TEntity : class, IEntity
diff --git a/src/Umbraco.Core/Cache/IRequestCache.cs b/src/Umbraco.Core/Cache/IRequestCache.cs
index 7ed7f8251c..1da08019c0 100644
--- a/src/Umbraco.Core/Cache/IRequestCache.cs
+++ b/src/Umbraco.Core/Cache/IRequestCache.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
public interface IRequestCache : IAppCache, IEnumerable>
{
diff --git a/src/Umbraco.Core/Cache/IsolatedCaches.cs b/src/Umbraco.Core/Cache/IsolatedCaches.cs
index f070fe8b55..6d197489ca 100644
--- a/src/Umbraco.Core/Cache/IsolatedCaches.cs
+++ b/src/Umbraco.Core/Cache/IsolatedCaches.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Represents a dictionary of for types.
diff --git a/src/Umbraco.Core/Cache/JsonCacheRefresherBase.cs b/src/Umbraco.Core/Cache/JsonCacheRefresherBase.cs
index 6826aab6ad..3e70bc54eb 100644
--- a/src/Umbraco.Core/Cache/JsonCacheRefresherBase.cs
+++ b/src/Umbraco.Core/Cache/JsonCacheRefresherBase.cs
@@ -1,7 +1,7 @@
-using Umbraco.Core.Serialization;
-using Umbraco.Core.Sync;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Cms.Core.Sync;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// A base class for "json" cache refreshers.
diff --git a/src/Umbraco.Core/Cache/LanguageCacheRefresher.cs b/src/Umbraco.Core/Cache/LanguageCacheRefresher.cs
index b66e35f843..b15d247ddf 100644
--- a/src/Umbraco.Core/Cache/LanguageCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/LanguageCacheRefresher.cs
@@ -1,14 +1,11 @@
using System;
-using System.Linq;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Serialization;
-using Umbraco.Core.Services;
-using Umbraco.Core.Services.Changes;
-using Umbraco.Web.PublishedCache;
-using static Umbraco.Web.Cache.LanguageCacheRefresher.JsonPayload;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.PublishedCache;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Cms.Core.Services.Changes;
+using static Umbraco.Cms.Core.Cache.LanguageCacheRefresher.JsonPayload;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class LanguageCacheRefresher : PayloadCacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/MacroCacheRefresher.cs b/src/Umbraco.Core/Cache/MacroCacheRefresher.cs
index 009e9f38d0..dd4c4c73de 100644
--- a/src/Umbraco.Core/Cache/MacroCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/MacroCacheRefresher.cs
@@ -1,11 +1,10 @@
using System;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
using System.Linq;
-using Umbraco.Core.Persistence.Repositories.Implement;
-using Umbraco.Core.Serialization;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Persistence.Repositories;
+using Umbraco.Cms.Core.Serialization;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class MacroCacheRefresher : PayloadCacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/MediaCacheRefresher.cs b/src/Umbraco.Core/Cache/MediaCacheRefresher.cs
index 9e62ed61fe..997083b0a7 100644
--- a/src/Umbraco.Core/Cache/MediaCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/MediaCacheRefresher.cs
@@ -1,14 +1,13 @@
using System;
-using Umbraco.Core;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Persistence.Repositories.Implement;
-using Umbraco.Core.Serialization;
-using Umbraco.Core.Services;
-using Umbraco.Core.Services.Changes;
-using Umbraco.Web.PublishedCache;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Persistence.Repositories;
+using Umbraco.Cms.Core.PublishedCache;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Cms.Core.Services;
+using Umbraco.Cms.Core.Services.Changes;
+using Umbraco.Extensions;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class MediaCacheRefresher : PayloadCacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/MemberCacheRefresher.cs b/src/Umbraco.Core/Cache/MemberCacheRefresher.cs
index a9a648acff..2d0ce7da16 100644
--- a/src/Umbraco.Core/Cache/MemberCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/MemberCacheRefresher.cs
@@ -1,13 +1,13 @@
//using Newtonsoft.Json;
-using System;
-using Umbraco.Core;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Persistence.Repositories.Implement;
-using Umbraco.Core.Serialization;
-using Umbraco.Core.Services;
-namespace Umbraco.Web.Cache
+using System;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Persistence.Repositories;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Cms.Core.Services;
+using Umbraco.Extensions;
+
+namespace Umbraco.Cms.Core.Cache
{
public sealed class MemberCacheRefresher : PayloadCacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs b/src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs
index 213ca11302..2db947d026 100644
--- a/src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs
@@ -1,10 +1,8 @@
using System;
-using System.Linq;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Serialization;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Serialization;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class MemberGroupCacheRefresher : PayloadCacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/NoAppCache.cs b/src/Umbraco.Core/Cache/NoAppCache.cs
index cae3a7381e..475e67b94a 100644
--- a/src/Umbraco.Core/Cache/NoAppCache.cs
+++ b/src/Umbraco.Core/Cache/NoAppCache.cs
@@ -3,7 +3,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Implements and do not cache.
diff --git a/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs b/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs
index 20b57c49ff..48aab0a5ee 100644
--- a/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs
+++ b/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Umbraco.Core.Models.Entities;
+using Umbraco.Cms.Core.Models.Entities;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
public class NoCacheRepositoryCachePolicy : IRepositoryCachePolicy
where TEntity : class, IEntity
diff --git a/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs b/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs
index dc9163affb..7096d077a2 100644
--- a/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs
+++ b/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs
@@ -4,9 +4,9 @@ using System.Linq;
using System.Runtime.Caching;
using System.Text.RegularExpressions;
using System.Threading;
-using Umbraco.Core.Composing;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Implements on top of a .
diff --git a/src/Umbraco.Core/Cache/PayloadCacheRefresherBase.cs b/src/Umbraco.Core/Cache/PayloadCacheRefresherBase.cs
index 7d3fd417d4..08d3e65506 100644
--- a/src/Umbraco.Core/Cache/PayloadCacheRefresherBase.cs
+++ b/src/Umbraco.Core/Cache/PayloadCacheRefresherBase.cs
@@ -1,8 +1,7 @@
-using System;
-using Umbraco.Core.Serialization;
-using Umbraco.Core.Sync;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Cms.Core.Sync;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// A base class for "payload" class refreshers.
diff --git a/src/Umbraco.Core/Cache/PublicAccessCacheRefresher.cs b/src/Umbraco.Core/Cache/PublicAccessCacheRefresher.cs
index 59c8231ed2..19064a8031 100644
--- a/src/Umbraco.Core/Cache/PublicAccessCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/PublicAccessCacheRefresher.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
+using Umbraco.Cms.Core.Models;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class PublicAccessCacheRefresher : CacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/RelationTypeCacheRefresher.cs b/src/Umbraco.Core/Cache/RelationTypeCacheRefresher.cs
index c9c8b47bbf..daa954b257 100644
--- a/src/Umbraco.Core/Cache/RelationTypeCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/RelationTypeCacheRefresher.cs
@@ -1,10 +1,8 @@
using System;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Persistence.Repositories;
-using Umbraco.Core.Persistence.Repositories.Implement;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Persistence.Repositories;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class RelationTypeCacheRefresher : CacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/RepositoryCachePolicyOptions.cs b/src/Umbraco.Core/Cache/RepositoryCachePolicyOptions.cs
index 06095f058d..94c3380bfd 100644
--- a/src/Umbraco.Core/Cache/RepositoryCachePolicyOptions.cs
+++ b/src/Umbraco.Core/Cache/RepositoryCachePolicyOptions.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Specifies how a repository cache policy should cache entities.
diff --git a/src/Umbraco.Core/Cache/SafeLazy.cs b/src/Umbraco.Core/Cache/SafeLazy.cs
index d901a534c6..9f2ad8f114 100644
--- a/src/Umbraco.Core/Cache/SafeLazy.cs
+++ b/src/Umbraco.Core/Cache/SafeLazy.cs
@@ -1,7 +1,7 @@
using System;
using System.Runtime.ExceptionServices;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
public static class SafeLazy
{
diff --git a/src/Umbraco.Core/Cache/TemplateCacheRefresher.cs b/src/Umbraco.Core/Cache/TemplateCacheRefresher.cs
index 27e727f73a..d02d3190eb 100644
--- a/src/Umbraco.Core/Cache/TemplateCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/TemplateCacheRefresher.cs
@@ -1,10 +1,9 @@
using System;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models;
-using Umbraco.Core.Persistence.Repositories;
-using Umbraco.Core.Services;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Persistence.Repositories;
+using Umbraco.Cms.Core.Services;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class TemplateCacheRefresher : CacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/TypedCacheRefresherBase.cs b/src/Umbraco.Core/Cache/TypedCacheRefresherBase.cs
index 0b5a04b571..9c9314aeae 100644
--- a/src/Umbraco.Core/Cache/TypedCacheRefresherBase.cs
+++ b/src/Umbraco.Core/Cache/TypedCacheRefresherBase.cs
@@ -1,6 +1,6 @@
-using Umbraco.Core.Sync;
+using Umbraco.Cms.Core.Sync;
-namespace Umbraco.Core.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// A base class for "typed" cache refreshers.
diff --git a/src/Umbraco.Core/Cache/UserCacheRefresher.cs b/src/Umbraco.Core/Cache/UserCacheRefresher.cs
index 922a9df385..0e8b749e50 100644
--- a/src/Umbraco.Core/Cache/UserCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/UserCacheRefresher.cs
@@ -1,10 +1,8 @@
using System;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models.Membership;
-using Umbraco.Core.Persistence.Repositories;
-using Umbraco.Core.Persistence.Repositories.Implement;
+using Umbraco.Cms.Core.Models.Membership;
+using Umbraco.Cms.Core.Persistence.Repositories;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
public sealed class UserCacheRefresher : CacheRefresherBase
{
diff --git a/src/Umbraco.Core/Cache/UserGroupCacheRefresher.cs b/src/Umbraco.Core/Cache/UserGroupCacheRefresher.cs
index 3fd34abfcd..7519994069 100644
--- a/src/Umbraco.Core/Cache/UserGroupCacheRefresher.cs
+++ b/src/Umbraco.Core/Cache/UserGroupCacheRefresher.cs
@@ -1,10 +1,8 @@
using System;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models.Membership;
-using Umbraco.Core.Persistence.Repositories;
-using Umbraco.Core.Persistence.Repositories.Implement;
+using Umbraco.Cms.Core.Models.Membership;
+using Umbraco.Cms.Core.Persistence.Repositories;
-namespace Umbraco.Web.Cache
+namespace Umbraco.Cms.Core.Cache
{
///
/// Handles User group cache invalidation/refreshing
diff --git a/src/Umbraco.Core/CodeAnnotations/FriendlyNameAttribute.cs b/src/Umbraco.Core/CodeAnnotations/FriendlyNameAttribute.cs
index 218891c635..f6ee121742 100644
--- a/src/Umbraco.Core/CodeAnnotations/FriendlyNameAttribute.cs
+++ b/src/Umbraco.Core/CodeAnnotations/FriendlyNameAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.CodeAnnotations
+namespace Umbraco.Cms.Core.CodeAnnotations
{
///
/// Attribute to add a Friendly Name string with an UmbracoObjectType enum value
diff --git a/src/Umbraco.Core/CodeAnnotations/UmbracoObjectTypeAttribute.cs b/src/Umbraco.Core/CodeAnnotations/UmbracoObjectTypeAttribute.cs
index e4fe2cd504..126567de02 100644
--- a/src/Umbraco.Core/CodeAnnotations/UmbracoObjectTypeAttribute.cs
+++ b/src/Umbraco.Core/CodeAnnotations/UmbracoObjectTypeAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.CodeAnnotations
+namespace Umbraco.Cms.Core.CodeAnnotations
{
///
/// Attribute to associate a GUID string and Type with an UmbracoObjectType Enum value
diff --git a/src/Umbraco.Core/CodeAnnotations/UmbracoUdiTypeAttribute.cs b/src/Umbraco.Core/CodeAnnotations/UmbracoUdiTypeAttribute.cs
index 72af1d9a70..5f889daa5c 100644
--- a/src/Umbraco.Core/CodeAnnotations/UmbracoUdiTypeAttribute.cs
+++ b/src/Umbraco.Core/CodeAnnotations/UmbracoUdiTypeAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.CodeAnnotations
+namespace Umbraco.Cms.Core.CodeAnnotations
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class UmbracoUdiTypeAttribute : Attribute
diff --git a/src/Umbraco.Core/Collections/CompositeIntStringKey.cs b/src/Umbraco.Core/Collections/CompositeIntStringKey.cs
index cafc209e08..542a6337bd 100644
--- a/src/Umbraco.Core/Collections/CompositeIntStringKey.cs
+++ b/src/Umbraco.Core/Collections/CompositeIntStringKey.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
/// Represents a composite key of (int, string) for fast dictionaries.
diff --git a/src/Umbraco.Core/Collections/CompositeNStringNStringKey.cs b/src/Umbraco.Core/Collections/CompositeNStringNStringKey.cs
index a06696f6c6..f247f3b76b 100644
--- a/src/Umbraco.Core/Collections/CompositeNStringNStringKey.cs
+++ b/src/Umbraco.Core/Collections/CompositeNStringNStringKey.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
/// Represents a composite key of (string, string) for fast dictionaries.
@@ -38,4 +38,4 @@ namespace Umbraco.Core.Collections
public static bool operator !=(CompositeNStringNStringKey key1, CompositeNStringNStringKey key2)
=> key1._key2 != key2._key2 || key1._key1 != key2._key1;
}
-}
\ No newline at end of file
+}
diff --git a/src/Umbraco.Core/Collections/CompositeStringStringKey.cs b/src/Umbraco.Core/Collections/CompositeStringStringKey.cs
index c053b08a22..652717cfdb 100644
--- a/src/Umbraco.Core/Collections/CompositeStringStringKey.cs
+++ b/src/Umbraco.Core/Collections/CompositeStringStringKey.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
/// Represents a composite key of (string, string) for fast dictionaries.
diff --git a/src/Umbraco.Core/Collections/CompositeTypeTypeKey.cs b/src/Umbraco.Core/Collections/CompositeTypeTypeKey.cs
index e08e3305d2..321f12c592 100644
--- a/src/Umbraco.Core/Collections/CompositeTypeTypeKey.cs
+++ b/src/Umbraco.Core/Collections/CompositeTypeTypeKey.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
/// Represents a composite key of (Type, Type) for fast dictionaries.
diff --git a/src/Umbraco.Core/Collections/ConcurrentHashSet.cs b/src/Umbraco.Core/Collections/ConcurrentHashSet.cs
index c4dba51acd..4cbce05f4c 100644
--- a/src/Umbraco.Core/Collections/ConcurrentHashSet.cs
+++ b/src/Umbraco.Core/Collections/ConcurrentHashSet.cs
@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
/// A thread-safe representation of a .
diff --git a/src/Umbraco.Core/Collections/DeepCloneableList.cs b/src/Umbraco.Core/Collections/DeepCloneableList.cs
index b682e20358..ecd17aab46 100644
--- a/src/Umbraco.Core/Collections/DeepCloneableList.cs
+++ b/src/Umbraco.Core/Collections/DeepCloneableList.cs
@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.Entities;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.Entities;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
/// A List that can be deep cloned with deep cloned elements and can reset the collection's items dirty flags
@@ -153,7 +153,7 @@ namespace Umbraco.Core.Collections
return Enumerable.Empty();
}
- public event PropertyChangedEventHandler PropertyChanged; // noop
+ public event PropertyChangedEventHandler PropertyChanged; // noop
#endregion
}
}
diff --git a/src/Umbraco.Core/Collections/EventClearingObservableCollection.cs b/src/Umbraco.Core/Collections/EventClearingObservableCollection.cs
index af25cc1b4a..df98fa5220 100644
--- a/src/Umbraco.Core/Collections/EventClearingObservableCollection.cs
+++ b/src/Umbraco.Core/Collections/EventClearingObservableCollection.cs
@@ -2,7 +2,7 @@
using System.Collections.ObjectModel;
using System.Collections.Specialized;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
/// Allows clearing all event handlers
diff --git a/src/Umbraco.Core/Collections/ListCloneBehavior.cs b/src/Umbraco.Core/Collections/ListCloneBehavior.cs
index 539afca21a..148141f783 100644
--- a/src/Umbraco.Core/Collections/ListCloneBehavior.cs
+++ b/src/Umbraco.Core/Collections/ListCloneBehavior.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
public enum ListCloneBehavior
{
diff --git a/src/Umbraco.Core/Collections/ObservableDictionary.cs b/src/Umbraco.Core/Collections/ObservableDictionary.cs
index fd9e469f07..a3c705e151 100644
--- a/src/Umbraco.Core/Collections/ObservableDictionary.cs
+++ b/src/Umbraco.Core/Collections/ObservableDictionary.cs
@@ -2,11 +2,9 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
-using System.ComponentModel;
using System.Linq;
-using System.Runtime.Serialization;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
diff --git a/src/Umbraco.Core/Collections/OrderedHashSet.cs b/src/Umbraco.Core/Collections/OrderedHashSet.cs
index 52b37bc7f9..51ae2fea22 100644
--- a/src/Umbraco.Core/Collections/OrderedHashSet.cs
+++ b/src/Umbraco.Core/Collections/OrderedHashSet.cs
@@ -1,6 +1,6 @@
using System.Collections.ObjectModel;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
/// A custom collection similar to HashSet{T} which only contains unique items, however this collection keeps items in order
diff --git a/src/Umbraco.Core/Collections/TopoGraph.cs b/src/Umbraco.Core/Collections/TopoGraph.cs
index 955a210465..12b0d431ea 100644
--- a/src/Umbraco.Core/Collections/TopoGraph.cs
+++ b/src/Umbraco.Core/Collections/TopoGraph.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
public class TopoGraph
{
diff --git a/src/Umbraco.Core/Collections/TypeList.cs b/src/Umbraco.Core/Collections/TypeList.cs
index 43df5f1af4..96565a843c 100644
--- a/src/Umbraco.Core/Collections/TypeList.cs
+++ b/src/Umbraco.Core/Collections/TypeList.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
-namespace Umbraco.Core.Collections
+namespace Umbraco.Cms.Core.Collections
{
///
/// Represents a list of types.
diff --git a/src/Umbraco.Core/Composing/BuilderCollectionBase.cs b/src/Umbraco.Core/Composing/BuilderCollectionBase.cs
index 484a9b930f..a5bf33f9c1 100644
--- a/src/Umbraco.Core/Composing/BuilderCollectionBase.cs
+++ b/src/Umbraco.Core/Composing/BuilderCollectionBase.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Provides a base class for builder collections.
diff --git a/src/Umbraco.Core/Composing/CollectionBuilderBase.cs b/src/Umbraco.Core/Composing/CollectionBuilderBase.cs
index 14089ba924..ab33a6ebef 100644
--- a/src/Umbraco.Core/Composing/CollectionBuilderBase.cs
+++ b/src/Umbraco.Core/Composing/CollectionBuilderBase.cs
@@ -2,9 +2,9 @@ using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
-using Umbraco.Core.DependencyInjection;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Provides a base class for collection builders.
diff --git a/src/Umbraco.Core/Composing/ComponentCollection.cs b/src/Umbraco.Core/Composing/ComponentCollection.cs
index 509962599c..1cd505027b 100644
--- a/src/Umbraco.Core/Composing/ComponentCollection.cs
+++ b/src/Umbraco.Core/Composing/ComponentCollection.cs
@@ -2,9 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Logging;
-using Umbraco.Core.Logging;
+using Umbraco.Cms.Core.Logging;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Represents the collection of implementations.
diff --git a/src/Umbraco.Core/Composing/ComponentCollectionBuilder.cs b/src/Umbraco.Core/Composing/ComponentCollectionBuilder.cs
index 903e2199e7..1e21de0304 100644
--- a/src/Umbraco.Core/Composing/ComponentCollectionBuilder.cs
+++ b/src/Umbraco.Core/Composing/ComponentCollectionBuilder.cs
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using Microsoft.Extensions.DependencyInjection;
-using Umbraco.Core.Logging;
+using Umbraco.Cms.Core.Logging;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Builds a .
diff --git a/src/Umbraco.Core/Composing/ComponentComposer.cs b/src/Umbraco.Core/Composing/ComponentComposer.cs
index fca0161d05..00bfb0b00f 100644
--- a/src/Umbraco.Core/Composing/ComponentComposer.cs
+++ b/src/Umbraco.Core/Composing/ComponentComposer.cs
@@ -1,6 +1,6 @@
-using Umbraco.Core.DependencyInjection;
+using Umbraco.Cms.Core.DependencyInjection;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Provides a base class for composers which compose a component.
diff --git a/src/Umbraco.Core/Composing/ComposeAfterAttribute.cs b/src/Umbraco.Core/Composing/ComposeAfterAttribute.cs
index 95c39c7094..c12ddbcd3e 100644
--- a/src/Umbraco.Core/Composing/ComposeAfterAttribute.cs
+++ b/src/Umbraco.Core/Composing/ComposeAfterAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Indicates that a composer requires another composer.
diff --git a/src/Umbraco.Core/Composing/ComposeBeforeAttribute.cs b/src/Umbraco.Core/Composing/ComposeBeforeAttribute.cs
index f88445b0e7..382772de8d 100644
--- a/src/Umbraco.Core/Composing/ComposeBeforeAttribute.cs
+++ b/src/Umbraco.Core/Composing/ComposeBeforeAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Indicates that a component is required by another composer.
diff --git a/src/Umbraco.Core/Composing/Composers.cs b/src/Umbraco.Core/Composing/Composers.cs
index 91c8244324..2250d022d5 100644
--- a/src/Umbraco.Core/Composing/Composers.cs
+++ b/src/Umbraco.Core/Composing/Composers.cs
@@ -3,12 +3,11 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
-using Umbraco.Core.Collections;
-using Umbraco.Core.Logging;
using Microsoft.Extensions.Logging;
-using Umbraco.Core.DependencyInjection;
+using Umbraco.Cms.Core.Collections;
+using Umbraco.Cms.Core.DependencyInjection;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
// note: this class is NOT thread-safe in any ways
diff --git a/src/Umbraco.Core/Composing/CompositionExtensions.cs b/src/Umbraco.Core/Composing/CompositionExtensions.cs
index d7b143df38..74f30b81b6 100644
--- a/src/Umbraco.Core/Composing/CompositionExtensions.cs
+++ b/src/Umbraco.Core/Composing/CompositionExtensions.cs
@@ -1,9 +1,8 @@
using System;
-using Umbraco.Core.DependencyInjection;
-using Umbraco.Core.Composing;
-using Umbraco.Web.PublishedCache;
+using Umbraco.Cms.Core.DependencyInjection;
+using Umbraco.Cms.Core.PublishedCache;
-namespace Umbraco.Infrastructure.PublishedCache
+namespace Umbraco.Extensions
{
public static class CompositionExtensions
{
diff --git a/src/Umbraco.Core/Composing/DefaultUmbracoAssemblyProvider.cs b/src/Umbraco.Core/Composing/DefaultUmbracoAssemblyProvider.cs
index 3e0ea9c971..516f26774a 100644
--- a/src/Umbraco.Core/Composing/DefaultUmbracoAssemblyProvider.cs
+++ b/src/Umbraco.Core/Composing/DefaultUmbracoAssemblyProvider.cs
@@ -1,8 +1,9 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Reflection;
+using Microsoft.Extensions.Logging;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Returns a list of scannable assemblies based on an entry point assembly and it's references
@@ -14,21 +15,22 @@ namespace Umbraco.Core.Composing
public class DefaultUmbracoAssemblyProvider : IAssemblyProvider
{
private readonly Assembly _entryPointAssembly;
+ private readonly ILoggerFactory _loggerFactory;
private static readonly string[] UmbracoCoreAssemblyNames = new[]
{
"Umbraco.Core",
"Umbraco.Infrastructure",
"Umbraco.PublishedCache.NuCache",
- "Umbraco.ModelsBuilder.Embedded",
"Umbraco.Examine.Lucene",
"Umbraco.Web.Common",
"Umbraco.Web.BackOffice",
"Umbraco.Web.Website",
};
- public DefaultUmbracoAssemblyProvider(Assembly entryPointAssembly)
+ public DefaultUmbracoAssemblyProvider(Assembly entryPointAssembly, ILoggerFactory loggerFactory)
{
_entryPointAssembly = entryPointAssembly ?? throw new ArgumentNullException(nameof(entryPointAssembly));
+ _loggerFactory = loggerFactory;
}
// TODO: It would be worth investigating a netcore3 version of this which would use
@@ -41,7 +43,7 @@ namespace Umbraco.Core.Composing
{
get
{
- var finder = new FindAssembliesWithReferencesTo(new[] { _entryPointAssembly }, UmbracoCoreAssemblyNames, true);
+ var finder = new FindAssembliesWithReferencesTo(new[] { _entryPointAssembly }, UmbracoCoreAssemblyNames, true, _loggerFactory);
return finder.Find();
}
}
diff --git a/src/Umbraco.Core/Composing/DisableAttribute.cs b/src/Umbraco.Core/Composing/DisableAttribute.cs
index e826f1c472..b3cfe59f11 100644
--- a/src/Umbraco.Core/Composing/DisableAttribute.cs
+++ b/src/Umbraco.Core/Composing/DisableAttribute.cs
@@ -1,7 +1,7 @@
using System;
using System.Reflection;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Indicates that a composer should be disabled.
diff --git a/src/Umbraco.Core/Composing/DisableComposerAttribute.cs b/src/Umbraco.Core/Composing/DisableComposerAttribute.cs
index 7adc5673ec..59b36178cf 100644
--- a/src/Umbraco.Core/Composing/DisableComposerAttribute.cs
+++ b/src/Umbraco.Core/Composing/DisableComposerAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Indicates that a composer should be disabled.
diff --git a/src/Umbraco.Core/Composing/EnableAttribute.cs b/src/Umbraco.Core/Composing/EnableAttribute.cs
index 276a04cbec..91fdd9e7e5 100644
--- a/src/Umbraco.Core/Composing/EnableAttribute.cs
+++ b/src/Umbraco.Core/Composing/EnableAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Indicates that a composer should be enabled.
diff --git a/src/Umbraco.Core/Composing/EnableComposerAttribute.cs b/src/Umbraco.Core/Composing/EnableComposerAttribute.cs
index a1bc0a8123..048a19a80f 100644
--- a/src/Umbraco.Core/Composing/EnableComposerAttribute.cs
+++ b/src/Umbraco.Core/Composing/EnableComposerAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Indicates that a composer should be enabled.
diff --git a/src/Umbraco.Core/Composing/FindAssembliesWithReferencesTo.cs b/src/Umbraco.Core/Composing/FindAssembliesWithReferencesTo.cs
index 9378941166..5b554a5321 100644
--- a/src/Umbraco.Core/Composing/FindAssembliesWithReferencesTo.cs
+++ b/src/Umbraco.Core/Composing/FindAssembliesWithReferencesTo.cs
@@ -1,10 +1,10 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
+using Microsoft.Extensions.Logging;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Finds Assemblies from the entry point assemblies, it's dependencies and it's transitive dependencies that reference that targetAssemblyNames
@@ -17,6 +17,7 @@ namespace Umbraco.Core.Composing
private readonly Assembly[] _referenceAssemblies;
private readonly string[] _targetAssemblies;
private readonly bool _includeTargets;
+ private readonly ILoggerFactory _loggerFactory;
///
/// Constructor
@@ -24,11 +25,13 @@ namespace Umbraco.Core.Composing
/// Entry point assemblies
/// Used to check if the entry point or it's transitive assemblies reference these assembly names
/// If true will also use the target assembly names as entry point assemblies
- public FindAssembliesWithReferencesTo(Assembly[] referenceAssemblies, string[] targetAssemblyNames, bool includeTargets)
+ /// Logger factory for when scanning goes wrong
+ public FindAssembliesWithReferencesTo(Assembly[] referenceAssemblies, string[] targetAssemblyNames, bool includeTargets, ILoggerFactory loggerFactory)
{
_referenceAssemblies = referenceAssemblies;
_targetAssemblies = targetAssemblyNames;
_includeTargets = includeTargets;
+ _loggerFactory = loggerFactory;
}
public IEnumerable Find()
@@ -54,7 +57,7 @@ namespace Umbraco.Core.Composing
}
}
- var provider = new ReferenceResolver(_targetAssemblies, referenceItems);
+ var provider = new ReferenceResolver(_targetAssemblies, referenceItems, _loggerFactory.CreateLogger());
var assemblyNames = provider.ResolveAssemblies();
return assemblyNames.ToList();
}
diff --git a/src/Umbraco.Core/Composing/HideFromTypeFinderAttribute.cs b/src/Umbraco.Core/Composing/HideFromTypeFinderAttribute.cs
index 54c846b944..b985a79494 100644
--- a/src/Umbraco.Core/Composing/HideFromTypeFinderAttribute.cs
+++ b/src/Umbraco.Core/Composing/HideFromTypeFinderAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Notifies the TypeFinder that it should ignore the class marked with this attribute.
diff --git a/src/Umbraco.Core/Composing/IAssemblyProvider.cs b/src/Umbraco.Core/Composing/IAssemblyProvider.cs
index bde97a9556..fdc942ae24 100644
--- a/src/Umbraco.Core/Composing/IAssemblyProvider.cs
+++ b/src/Umbraco.Core/Composing/IAssemblyProvider.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Reflection;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Provides a list of assemblies that can be scanned
diff --git a/src/Umbraco.Core/Composing/IBuilderCollection.cs b/src/Umbraco.Core/Composing/IBuilderCollection.cs
index 3ce729392d..5e78cf0c2f 100644
--- a/src/Umbraco.Core/Composing/IBuilderCollection.cs
+++ b/src/Umbraco.Core/Composing/IBuilderCollection.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Represents a builder collection, ie an immutable enumeration of items.
diff --git a/src/Umbraco.Core/Composing/ICollectionBuilder.cs b/src/Umbraco.Core/Composing/ICollectionBuilder.cs
index a48d06d2dd..ea09558cad 100644
--- a/src/Umbraco.Core/Composing/ICollectionBuilder.cs
+++ b/src/Umbraco.Core/Composing/ICollectionBuilder.cs
@@ -1,7 +1,7 @@
using System;
using Microsoft.Extensions.DependencyInjection;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Represents a collection builder.
diff --git a/src/Umbraco.Core/Composing/IComponent.cs b/src/Umbraco.Core/Composing/IComponent.cs
index dcd0365b12..8e9cf815e8 100644
--- a/src/Umbraco.Core/Composing/IComponent.cs
+++ b/src/Umbraco.Core/Composing/IComponent.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Represents a component.
diff --git a/src/Umbraco.Core/Composing/IComposer.cs b/src/Umbraco.Core/Composing/IComposer.cs
index d67bb71461..6f1978ee3e 100644
--- a/src/Umbraco.Core/Composing/IComposer.cs
+++ b/src/Umbraco.Core/Composing/IComposer.cs
@@ -1,6 +1,6 @@
-using Umbraco.Core.DependencyInjection;
+using Umbraco.Cms.Core.DependencyInjection;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Represents a composer.
diff --git a/src/Umbraco.Core/Composing/ICoreComposer.cs b/src/Umbraco.Core/Composing/ICoreComposer.cs
index 1e9e5fced5..24daae75b1 100644
--- a/src/Umbraco.Core/Composing/ICoreComposer.cs
+++ b/src/Umbraco.Core/Composing/ICoreComposer.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Represents a core .
diff --git a/src/Umbraco.Core/Composing/IDiscoverable.cs b/src/Umbraco.Core/Composing/IDiscoverable.cs
index c7bbb57a14..153fde36b6 100644
--- a/src/Umbraco.Core/Composing/IDiscoverable.cs
+++ b/src/Umbraco.Core/Composing/IDiscoverable.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
public interface IDiscoverable
{ }
diff --git a/src/Umbraco.Core/Composing/IRuntimeHash.cs b/src/Umbraco.Core/Composing/IRuntimeHash.cs
index c2fb829cc6..b19b22a7e9 100644
--- a/src/Umbraco.Core/Composing/IRuntimeHash.cs
+++ b/src/Umbraco.Core/Composing/IRuntimeHash.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Used to create a hash value of the current runtime
diff --git a/src/Umbraco.Core/Composing/ITypeFinder.cs b/src/Umbraco.Core/Composing/ITypeFinder.cs
index 7ed6084074..2cf6ca23f7 100644
--- a/src/Umbraco.Core/Composing/ITypeFinder.cs
+++ b/src/Umbraco.Core/Composing/ITypeFinder.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Reflection;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Used to find objects by implemented types, names and/or attributes
diff --git a/src/Umbraco.Core/Composing/IUserComposer.cs b/src/Umbraco.Core/Composing/IUserComposer.cs
index 96f6b38189..52ed4fdf5c 100644
--- a/src/Umbraco.Core/Composing/IUserComposer.cs
+++ b/src/Umbraco.Core/Composing/IUserComposer.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Represents a user .
diff --git a/src/Umbraco.Core/Composing/LazyCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/LazyCollectionBuilderBase.cs
index 46b06daf7d..d8721b0d19 100644
--- a/src/Umbraco.Core/Composing/LazyCollectionBuilderBase.cs
+++ b/src/Umbraco.Core/Composing/LazyCollectionBuilderBase.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Implements a lazy collection builder.
diff --git a/src/Umbraco.Core/Composing/LazyResolve.cs b/src/Umbraco.Core/Composing/LazyResolve.cs
index 5a60b54d87..afa22f74b6 100644
--- a/src/Umbraco.Core/Composing/LazyResolve.cs
+++ b/src/Umbraco.Core/Composing/LazyResolve.cs
@@ -1,7 +1,7 @@
using System;
using Microsoft.Extensions.DependencyInjection;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
public class LazyResolve : Lazy
where T : class
diff --git a/src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs
index 2bd4c0d434..939561f557 100644
--- a/src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs
+++ b/src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Implements an ordered collection builder.
diff --git a/src/Umbraco.Core/Composing/ReferenceResolver.cs b/src/Umbraco.Core/Composing/ReferenceResolver.cs
index 8c110dbeea..6ecd425ac1 100644
--- a/src/Umbraco.Core/Composing/ReferenceResolver.cs
+++ b/src/Umbraco.Core/Composing/ReferenceResolver.cs
@@ -4,8 +4,10 @@ using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
+using System.Security;
+using Microsoft.Extensions.Logging;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Resolves assemblies that reference one of the specified "targetAssemblies" either directly or transitively.
@@ -19,11 +21,12 @@ namespace Umbraco.Core.Composing
private readonly IReadOnlyList _assemblies;
private readonly Dictionary _classifications;
private readonly List _lookup = new List();
-
- public ReferenceResolver(IReadOnlyList targetAssemblies, IReadOnlyList entryPointAssemblies)
+ private readonly ILogger _logger;
+ public ReferenceResolver(IReadOnlyList targetAssemblies, IReadOnlyList entryPointAssemblies, ILogger logger)
{
_umbracoAssemblies = new HashSet(targetAssemblies, StringComparer.Ordinal);
_assemblies = entryPointAssemblies;
+ _logger = logger;
_classifications = new Dictionary();
foreach (var item in entryPointAssemblies)
@@ -54,19 +57,39 @@ namespace Umbraco.Core.Composing
{
foreach(var dll in Directory.EnumerateFiles(dir, "*.dll"))
{
- var assemblyName = AssemblyName.GetAssemblyName(dll);
+ AssemblyName assemblyName = null;
+ try
+ {
+ assemblyName = AssemblyName.GetAssemblyName(dll);
+ }
+ catch (BadImageFormatException e)
+ {
+ _logger.LogDebug(e, "Could not load {dll} for type scanning, skipping", dll);
+ }
+ catch (SecurityException e)
+ {
+ _logger.LogError(e, "Could not access {dll} for type scanning due to a security problem", dll);
+ }
+ catch (Exception e)
+ {
+ _logger.LogInformation(e, "Error: could not load {dll} for type scanning", dll);
+ }
- // don't include if this is excluded
- if (TypeFinder.KnownAssemblyExclusionFilter.Any(f => assemblyName.FullName.StartsWith(f, StringComparison.InvariantCultureIgnoreCase)))
- continue;
+ if (assemblyName != null)
+ {
+ // don't include if this is excluded
+ if (TypeFinder.KnownAssemblyExclusionFilter.Any(f =>
+ assemblyName.FullName.StartsWith(f, StringComparison.InvariantCultureIgnoreCase)))
+ continue;
- // don't include this item if it's Umbraco
- // TODO: We should maybe pass an explicit list of these names in?
- if (assemblyName.FullName.StartsWith("Umbraco.") || assemblyName.Name.EndsWith(".Views"))
- continue;
+ // don't include this item if it's Umbraco
+ // TODO: We should maybe pass an explicit list of these names in?
+ if (assemblyName.FullName.StartsWith("Umbraco.") || assemblyName.Name.EndsWith(".Views"))
+ continue;
- var assembly = Assembly.Load(assemblyName);
- assemblies.Add(assembly);
+ var assembly = Assembly.Load(assemblyName);
+ assemblies.Add(assembly);
+ }
}
}
diff --git a/src/Umbraco.Core/Composing/RuntimeHash.cs b/src/Umbraco.Core/Composing/RuntimeHash.cs
index 16665384c6..ae13b49915 100644
--- a/src/Umbraco.Core/Composing/RuntimeHash.cs
+++ b/src/Umbraco.Core/Composing/RuntimeHash.cs
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using Umbraco.Core.Logging;
+using Umbraco.Cms.Core.Logging;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Determines the runtime hash based on file system paths to scan
diff --git a/src/Umbraco.Core/Composing/RuntimeHashPaths.cs b/src/Umbraco.Core/Composing/RuntimeHashPaths.cs
index c5a994c9a6..12a878ee94 100644
--- a/src/Umbraco.Core/Composing/RuntimeHashPaths.cs
+++ b/src/Umbraco.Core/Composing/RuntimeHashPaths.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.IO;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Paths used to determine the
diff --git a/src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs
index 9261423bbc..358aab75dd 100644
--- a/src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs
+++ b/src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Implements an un-ordered collection builder.
diff --git a/src/Umbraco.Core/Composing/TypeCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/TypeCollectionBuilderBase.cs
index 9229a95cc3..0bebf8bf8b 100644
--- a/src/Umbraco.Core/Composing/TypeCollectionBuilderBase.cs
+++ b/src/Umbraco.Core/Composing/TypeCollectionBuilderBase.cs
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using Microsoft.Extensions.DependencyInjection;
-using Umbraco.Core.DependencyInjection;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Provides a base class for collections of types.
diff --git a/src/Umbraco.Core/Composing/TypeFinder.cs b/src/Umbraco.Core/Composing/TypeFinder.cs
index 4cfcd9090c..4ec46bbda0 100644
--- a/src/Umbraco.Core/Composing/TypeFinder.cs
+++ b/src/Umbraco.Core/Composing/TypeFinder.cs
@@ -5,10 +5,11 @@ using System.Linq;
using System.Reflection;
using System.Security;
using System.Text;
-using Umbraco.Core.Configuration.UmbracoSettings;
using Microsoft.Extensions.Logging;
+using Umbraco.Cms.Core.Configuration.UmbracoSettings;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
diff --git a/src/Umbraco.Core/Composing/TypeFinderConfig.cs b/src/Umbraco.Core/Composing/TypeFinderConfig.cs
index ef862fd49d..7940773231 100644
--- a/src/Umbraco.Core/Composing/TypeFinderConfig.cs
+++ b/src/Umbraco.Core/Composing/TypeFinderConfig.cs
@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Options;
-using Umbraco.Core.Configuration.Models;
-using Umbraco.Core.Configuration.UmbracoSettings;
+using Umbraco.Cms.Core.Configuration.Models;
+using Umbraco.Cms.Core.Configuration.UmbracoSettings;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// TypeFinder config via appSettings
diff --git a/src/Umbraco.Core/Composing/TypeFinderExtensions.cs b/src/Umbraco.Core/Composing/TypeFinderExtensions.cs
index e364790556..cad92aa17b 100644
--- a/src/Umbraco.Core/Composing/TypeFinderExtensions.cs
+++ b/src/Umbraco.Core/Composing/TypeFinderExtensions.cs
@@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
using System.Reflection;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Extensions
{
public static class TypeFinderExtensions
{
diff --git a/src/Umbraco.Core/Composing/TypeHelper.cs b/src/Umbraco.Core/Composing/TypeHelper.cs
index 1987a4059c..d683e313be 100644
--- a/src/Umbraco.Core/Composing/TypeHelper.cs
+++ b/src/Umbraco.Core/Composing/TypeHelper.cs
@@ -5,10 +5,11 @@ using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reflection;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
-
+
///
/// A utility class for type checking, this provides internal caching so that calls to these methods will be faster
/// than doing a manual type check in c#
@@ -19,10 +20,10 @@ namespace Umbraco.Core.Composing
= new ConcurrentDictionary, PropertyInfo[]>();
private static readonly ConcurrentDictionary GetFieldsCache
= new ConcurrentDictionary();
-
+
private static readonly Assembly[] EmptyAssemblies = new Assembly[0];
-
+
///
/// Based on a type we'll check if it is IEnumerable{T} (or similar) and if so we'll return a List{T}, this will also deal with array types and return List{T} for those too.
diff --git a/src/Umbraco.Core/Composing/TypeLoader.cs b/src/Umbraco.Core/Composing/TypeLoader.cs
index c7bac236a6..759647482f 100644
--- a/src/Umbraco.Core/Composing/TypeLoader.cs
+++ b/src/Umbraco.Core/Composing/TypeLoader.cs
@@ -6,14 +6,14 @@ using System.Reflection;
using System.Runtime.Serialization;
using System.Text;
using System.Threading;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Collections;
-using Umbraco.Core.IO;
-using Umbraco.Core.Logging;
-using File = System.IO.File;
using Microsoft.Extensions.Logging;
+using Umbraco.Cms.Core.Cache;
+using Umbraco.Cms.Core.Collections;
+using Umbraco.Cms.Core.Logging;
+using Umbraco.Extensions;
+using File = System.IO.File;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Provides methods to find and instantiate types.
diff --git a/src/Umbraco.Core/Composing/VaryingRuntimeHash.cs b/src/Umbraco.Core/Composing/VaryingRuntimeHash.cs
index 034af3b80c..eec2adc637 100644
--- a/src/Umbraco.Core/Composing/VaryingRuntimeHash.cs
+++ b/src/Umbraco.Core/Composing/VaryingRuntimeHash.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// A runtime hash this is always different on each app startup
diff --git a/src/Umbraco.Core/Composing/WeightAttribute.cs b/src/Umbraco.Core/Composing/WeightAttribute.cs
index ec652ba9a3..1225abca0c 100644
--- a/src/Umbraco.Core/Composing/WeightAttribute.cs
+++ b/src/Umbraco.Core/Composing/WeightAttribute.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Specifies the weight of pretty much anything.
diff --git a/src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs
index 88eb61de76..e15df52039 100644
--- a/src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs
+++ b/src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace Umbraco.Core.Composing
+namespace Umbraco.Cms.Core.Composing
{
///
/// Implements a weighted collection builder.
diff --git a/src/Umbraco.Core/Configuration/ConfigConnectionString.cs b/src/Umbraco.Core/Configuration/ConfigConnectionString.cs
index 72408e212c..dab615da51 100644
--- a/src/Umbraco.Core/Configuration/ConfigConnectionString.cs
+++ b/src/Umbraco.Core/Configuration/ConfigConnectionString.cs
@@ -1,7 +1,7 @@
using System;
using System.Data.Common;
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
public class ConfigConnectionString
{
@@ -35,7 +35,7 @@ namespace Umbraco.Core.Configuration
{
if (dataSource.EndsWith(".sdf"))
{
- return Constants.DbProviderNames.SqlCe;
+ return Umbraco.Cms.Core.Constants.DbProviderNames.SqlCe;
}
}
@@ -44,17 +44,17 @@ namespace Umbraco.Core.Configuration
{
if (builder.TryGetValue("Database", out var db) && db is string database && !string.IsNullOrEmpty(database))
{
- return Constants.DbProviderNames.SqlServer;
+ return Umbraco.Cms.Core.Constants.DbProviderNames.SqlServer;
}
if (builder.TryGetValue("AttachDbFileName", out var a) && a is string attachDbFileName && !string.IsNullOrEmpty(attachDbFileName))
{
- return Constants.DbProviderNames.SqlServer;
+ return Umbraco.Cms.Core.Constants.DbProviderNames.SqlServer;
}
if (builder.TryGetValue("Initial Catalog", out var i) && i is string initialCatalog && !string.IsNullOrEmpty(initialCatalog))
{
- return Constants.DbProviderNames.SqlServer;
+ return Umbraco.Cms.Core.Constants.DbProviderNames.SqlServer;
}
}
diff --git a/src/Umbraco.Core/Configuration/ContentSettingsExtensions.cs b/src/Umbraco.Core/Configuration/ContentSettingsExtensions.cs
index 31f4373fd2..ac4e6b0864 100644
--- a/src/Umbraco.Core/Configuration/ContentSettingsExtensions.cs
+++ b/src/Umbraco.Core/Configuration/ContentSettingsExtensions.cs
@@ -1,8 +1,7 @@
using System.Linq;
-using Umbraco.Core.Configuration.Models;
-using Umbraco.Core.Configuration.UmbracoSettings;
+using Umbraco.Cms.Core.Configuration.Models;
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Extensions
{
public static class ContentSettingsExtensions
{
diff --git a/src/Umbraco.Core/Configuration/Extensions/HealthCheckSettingsExtensions.cs b/src/Umbraco.Core/Configuration/Extensions/HealthCheckSettingsExtensions.cs
index ae842cb040..7655252981 100644
--- a/src/Umbraco.Core/Configuration/Extensions/HealthCheckSettingsExtensions.cs
+++ b/src/Umbraco.Core/Configuration/Extensions/HealthCheckSettingsExtensions.cs
@@ -1,7 +1,8 @@
using System;
-using Umbraco.Core.Configuration.Models;
+using Umbraco.Cms.Core.Configuration;
+using Umbraco.Cms.Core.Configuration.Models;
-namespace Umbraco.Core.Configuration.Extensions
+namespace Umbraco.Extensions
{
public static class HealthCheckSettingsExtensions
{
diff --git a/src/Umbraco.Core/Configuration/GlobalSettingsExtensions.cs b/src/Umbraco.Core/Configuration/GlobalSettingsExtensions.cs
index f9b2362e14..a0fd308490 100644
--- a/src/Umbraco.Core/Configuration/GlobalSettingsExtensions.cs
+++ b/src/Umbraco.Core/Configuration/GlobalSettingsExtensions.cs
@@ -1,8 +1,8 @@
using System;
-using Umbraco.Core.Configuration.Models;
-using Umbraco.Core.Hosting;
+using Umbraco.Cms.Core.Configuration.Models;
+using Umbraco.Cms.Core.Hosting;
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Extensions
{
public static class GlobalSettingsExtensions
{
diff --git a/src/Umbraco.Core/Configuration/Grid/GridConfig.cs b/src/Umbraco.Core/Configuration/Grid/GridConfig.cs
index d9816101fd..27d6820399 100644
--- a/src/Umbraco.Core/Configuration/Grid/GridConfig.cs
+++ b/src/Umbraco.Core/Configuration/Grid/GridConfig.cs
@@ -1,10 +1,10 @@
using Microsoft.Extensions.Logging;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Hosting;
-using Umbraco.Core.Manifest;
-using Umbraco.Core.Serialization;
+using Umbraco.Cms.Core.Cache;
+using Umbraco.Cms.Core.Hosting;
+using Umbraco.Cms.Core.Manifest;
+using Umbraco.Cms.Core.Serialization;
-namespace Umbraco.Core.Configuration.Grid
+namespace Umbraco.Cms.Core.Configuration.Grid
{
public class GridConfig : IGridConfig
{
diff --git a/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs b/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs
index 6ee72f1d04..680c47590e 100644
--- a/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs
+++ b/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs
@@ -2,13 +2,14 @@
using System.Collections.Generic;
using System.IO;
using Microsoft.Extensions.Logging;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Hosting;
-using Umbraco.Core.Manifest;
-using Umbraco.Core.PropertyEditors;
-using Umbraco.Core.Serialization;
+using Umbraco.Cms.Core.Cache;
+using Umbraco.Cms.Core.Hosting;
+using Umbraco.Cms.Core.Manifest;
+using Umbraco.Cms.Core.PropertyEditors;
+using Umbraco.Cms.Core.Serialization;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Configuration.Grid
+namespace Umbraco.Cms.Core.Configuration.Grid
{
internal class GridEditorsConfig : IGridEditorsConfig
{
diff --git a/src/Umbraco.Core/Configuration/Grid/IGridConfig.cs b/src/Umbraco.Core/Configuration/Grid/IGridConfig.cs
index a1170c136e..d009eddd25 100644
--- a/src/Umbraco.Core/Configuration/Grid/IGridConfig.cs
+++ b/src/Umbraco.Core/Configuration/Grid/IGridConfig.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Umbraco.Core.Configuration.Grid
+namespace Umbraco.Cms.Core.Configuration.Grid
{
public interface IGridConfig
{
diff --git a/src/Umbraco.Core/Configuration/Grid/IGridEditorConfig.cs b/src/Umbraco.Core/Configuration/Grid/IGridEditorConfig.cs
index 0edd2f10c5..4bd75042ca 100644
--- a/src/Umbraco.Core/Configuration/Grid/IGridEditorConfig.cs
+++ b/src/Umbraco.Core/Configuration/Grid/IGridEditorConfig.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace Umbraco.Core.Configuration.Grid
+namespace Umbraco.Cms.Core.Configuration.Grid
{
public interface IGridEditorConfig
{
diff --git a/src/Umbraco.Core/Configuration/Grid/IGridEditorsConfig.cs b/src/Umbraco.Core/Configuration/Grid/IGridEditorsConfig.cs
index 418d9b9560..a49ae41d6c 100644
--- a/src/Umbraco.Core/Configuration/Grid/IGridEditorsConfig.cs
+++ b/src/Umbraco.Core/Configuration/Grid/IGridEditorsConfig.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace Umbraco.Core.Configuration.Grid
+namespace Umbraco.Cms.Core.Configuration.Grid
{
public interface IGridEditorsConfig
{
diff --git a/src/Umbraco.Core/Configuration/IConfigManipulator.cs b/src/Umbraco.Core/Configuration/IConfigManipulator.cs
index 16c5a509f2..f0f4bcde63 100644
--- a/src/Umbraco.Core/Configuration/IConfigManipulator.cs
+++ b/src/Umbraco.Core/Configuration/IConfigManipulator.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
public interface IConfigManipulator
{
diff --git a/src/Umbraco.Core/Configuration/ICronTabParser.cs b/src/Umbraco.Core/Configuration/ICronTabParser.cs
index 7124a098b3..565d9fa47b 100644
--- a/src/Umbraco.Core/Configuration/ICronTabParser.cs
+++ b/src/Umbraco.Core/Configuration/ICronTabParser.cs
@@ -3,7 +3,7 @@
using System;
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
///
/// Defines the contract for that allows the parsing of chrontab expressions.
diff --git a/src/Umbraco.Core/Configuration/IMemberPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/IMemberPasswordConfiguration.cs
index a7c956a337..7bd8ab9ef2 100644
--- a/src/Umbraco.Core/Configuration/IMemberPasswordConfiguration.cs
+++ b/src/Umbraco.Core/Configuration/IMemberPasswordConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
///
/// The password configuration for members
diff --git a/src/Umbraco.Core/Configuration/IPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/IPasswordConfiguration.cs
index 0c143f22e6..4d042d9270 100644
--- a/src/Umbraco.Core/Configuration/IPasswordConfiguration.cs
+++ b/src/Umbraco.Core/Configuration/IPasswordConfiguration.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
///
/// Password configuration
diff --git a/src/Umbraco.Core/Configuration/ITypeFinderSettings.cs b/src/Umbraco.Core/Configuration/ITypeFinderSettings.cs
index 15e72a1f40..9dc5805423 100644
--- a/src/Umbraco.Core/Configuration/ITypeFinderSettings.cs
+++ b/src/Umbraco.Core/Configuration/ITypeFinderSettings.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
public interface ITypeFinderSettings
{
diff --git a/src/Umbraco.Core/Configuration/IUmbracoConfigurationSection.cs b/src/Umbraco.Core/Configuration/IUmbracoConfigurationSection.cs
index 2cf4049c3b..4a1e65f13f 100644
--- a/src/Umbraco.Core/Configuration/IUmbracoConfigurationSection.cs
+++ b/src/Umbraco.Core/Configuration/IUmbracoConfigurationSection.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
///
/// Represents an Umbraco configuration section which can be used to pass to UmbracoConfiguration.For{T}
@@ -7,4 +7,4 @@
{
}
-}
\ No newline at end of file
+}
diff --git a/src/Umbraco.Core/Configuration/IUmbracoVersion.cs b/src/Umbraco.Core/Configuration/IUmbracoVersion.cs
index 665979189d..4e6e6e92e6 100644
--- a/src/Umbraco.Core/Configuration/IUmbracoVersion.cs
+++ b/src/Umbraco.Core/Configuration/IUmbracoVersion.cs
@@ -1,7 +1,7 @@
using System;
-using Semver;
+using Umbraco.Cms.Core.Semver;
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
public interface IUmbracoVersion
{
diff --git a/src/Umbraco.Core/Configuration/IUserPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/IUserPasswordConfiguration.cs
index ca9a7f3271..db27103a67 100644
--- a/src/Umbraco.Core/Configuration/IUserPasswordConfiguration.cs
+++ b/src/Umbraco.Core/Configuration/IUserPasswordConfiguration.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
///
/// The password configuration for back office users
diff --git a/src/Umbraco.Core/Configuration/LocalTempStorage.cs b/src/Umbraco.Core/Configuration/LocalTempStorage.cs
index 50eab639d0..696ec7900e 100644
--- a/src/Umbraco.Core/Configuration/LocalTempStorage.cs
+++ b/src/Umbraco.Core/Configuration/LocalTempStorage.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
public enum LocalTempStorage
{
diff --git a/src/Umbraco.Core/Configuration/MemberPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/MemberPasswordConfiguration.cs
index b56a6e7272..c7ce20454f 100644
--- a/src/Umbraco.Core/Configuration/MemberPasswordConfiguration.cs
+++ b/src/Umbraco.Core/Configuration/MemberPasswordConfiguration.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core.Configuration.UmbracoSettings;
-
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
///
/// The password configuration for members
diff --git a/src/Umbraco.Core/Configuration/Models/ActiveDirectorySettings.cs b/src/Umbraco.Core/Configuration/Models/ActiveDirectorySettings.cs
index 135b8b763c..700e3fe3e1 100644
--- a/src/Umbraco.Core/Configuration/Models/ActiveDirectorySettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ActiveDirectorySettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for active directory settings.
diff --git a/src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs b/src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs
index 52b8a02478..9e6ab4cff1 100644
--- a/src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for connection strings.
diff --git a/src/Umbraco.Core/Configuration/Models/ContentErrorPage.cs b/src/Umbraco.Core/Configuration/Models/ContentErrorPage.cs
index 842b2e6fb7..53bc96bbf5 100644
--- a/src/Umbraco.Core/Configuration/Models/ContentErrorPage.cs
+++ b/src/Umbraco.Core/Configuration/Models/ContentErrorPage.cs
@@ -3,9 +3,9 @@
using System;
using System.ComponentModel.DataAnnotations;
-using Umbraco.Core.Configuration.Models.Validation;
+using Umbraco.Cms.Core.Configuration.Models.Validation;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration for a content error page.
diff --git a/src/Umbraco.Core/Configuration/Models/ContentImagingSettings.cs b/src/Umbraco.Core/Configuration/Models/ContentImagingSettings.cs
index d31c5cb6d7..ee21484dab 100644
--- a/src/Umbraco.Core/Configuration/Models/ContentImagingSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ContentImagingSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for content imaging settings.
diff --git a/src/Umbraco.Core/Configuration/Models/ContentNotificationSettings.cs b/src/Umbraco.Core/Configuration/Models/ContentNotificationSettings.cs
index 48a131adfa..2fa92eb4b5 100644
--- a/src/Umbraco.Core/Configuration/Models/ContentNotificationSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ContentNotificationSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for content notification settings.
diff --git a/src/Umbraco.Core/Configuration/Models/ContentSettings.cs b/src/Umbraco.Core/Configuration/Models/ContentSettings.cs
index 01ffffa190..6738956686 100644
--- a/src/Umbraco.Core/Configuration/Models/ContentSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ContentSettings.cs
@@ -3,9 +3,9 @@
using System;
using System.Collections.Generic;
-using Umbraco.Core.Macros;
+using Umbraco.Cms.Core.Macros;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for content settings.
diff --git a/src/Umbraco.Core/Configuration/Models/CoreDebugSettings.cs b/src/Umbraco.Core/Configuration/Models/CoreDebugSettings.cs
index a263fb648a..1978e02f18 100644
--- a/src/Umbraco.Core/Configuration/Models/CoreDebugSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/CoreDebugSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for core debug settings.
diff --git a/src/Umbraco.Core/Configuration/Models/DatabaseServerMessengerSettings.cs b/src/Umbraco.Core/Configuration/Models/DatabaseServerMessengerSettings.cs
index 8ad87bbb4e..d2afea19e7 100644
--- a/src/Umbraco.Core/Configuration/Models/DatabaseServerMessengerSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/DatabaseServerMessengerSettings.cs
@@ -3,7 +3,7 @@
using System;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for database server messaging settings.
diff --git a/src/Umbraco.Core/Configuration/Models/DatabaseServerRegistrarSettings.cs b/src/Umbraco.Core/Configuration/Models/DatabaseServerRegistrarSettings.cs
index ae2502d8af..66d35f6a36 100644
--- a/src/Umbraco.Core/Configuration/Models/DatabaseServerRegistrarSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/DatabaseServerRegistrarSettings.cs
@@ -3,7 +3,7 @@
using System;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for database server registrar settings.
diff --git a/src/Umbraco.Core/Configuration/Models/DisabledHealthCheckSettings.cs b/src/Umbraco.Core/Configuration/Models/DisabledHealthCheckSettings.cs
index 38c71fd83f..a24ec5b923 100644
--- a/src/Umbraco.Core/Configuration/Models/DisabledHealthCheckSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/DisabledHealthCheckSettings.cs
@@ -3,7 +3,7 @@
using System;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for disabled healthcheck settings.
diff --git a/src/Umbraco.Core/Configuration/Models/ExceptionFilterSettings.cs b/src/Umbraco.Core/Configuration/Models/ExceptionFilterSettings.cs
index 1a1362ff21..0a6bc32351 100644
--- a/src/Umbraco.Core/Configuration/Models/ExceptionFilterSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ExceptionFilterSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for exception filter settings.
diff --git a/src/Umbraco.Core/Configuration/Models/GlobalSettings.cs b/src/Umbraco.Core/Configuration/Models/GlobalSettings.cs
index c6e5d92794..ada191a46b 100644
--- a/src/Umbraco.Core/Configuration/Models/GlobalSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/GlobalSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for global settings.
diff --git a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationMethodSettings.cs b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationMethodSettings.cs
index 03293180db..0ca03d6cc0 100644
--- a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationMethodSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationMethodSettings.cs
@@ -2,9 +2,9 @@
// See LICENSE for more details.
using System.Collections.Generic;
-using Umbraco.Core.HealthChecks;
+using Umbraco.Cms.Core.HealthChecks;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for healthcheck notification method settings.
diff --git a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs
index 3e52a70b29..316b494a19 100644
--- a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs
@@ -5,7 +5,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for healthcheck notification settings.
diff --git a/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs b/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs
index e3ae9a3f96..ba7ccf1371 100644
--- a/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs
@@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for healthchecks settings.
diff --git a/src/Umbraco.Core/Configuration/Models/HostingSettings.cs b/src/Umbraco.Core/Configuration/Models/HostingSettings.cs
index 0478e9b7e1..981cf8a6db 100644
--- a/src/Umbraco.Core/Configuration/Models/HostingSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/HostingSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for hosting settings.
diff --git a/src/Umbraco.Core/Configuration/Models/ImagingAutoFillUploadField.cs b/src/Umbraco.Core/Configuration/Models/ImagingAutoFillUploadField.cs
index 999bcf2dff..462a90c351 100644
--- a/src/Umbraco.Core/Configuration/Models/ImagingAutoFillUploadField.cs
+++ b/src/Umbraco.Core/Configuration/Models/ImagingAutoFillUploadField.cs
@@ -2,9 +2,9 @@
// See LICENSE for more details.
using System.ComponentModel.DataAnnotations;
-using Umbraco.Core.Configuration.Models.Validation;
+using Umbraco.Cms.Core.Configuration.Models.Validation;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for image autofill upload settings.
diff --git a/src/Umbraco.Core/Configuration/Models/ImagingCacheSettings.cs b/src/Umbraco.Core/Configuration/Models/ImagingCacheSettings.cs
index 0a3e723722..e9bdd77545 100644
--- a/src/Umbraco.Core/Configuration/Models/ImagingCacheSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ImagingCacheSettings.cs
@@ -4,7 +4,7 @@
using System;
using System.IO;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for image cache settings.
diff --git a/src/Umbraco.Core/Configuration/Models/ImagingResizeSettings.cs b/src/Umbraco.Core/Configuration/Models/ImagingResizeSettings.cs
index c95aad52ad..e71ed4f2e4 100644
--- a/src/Umbraco.Core/Configuration/Models/ImagingResizeSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ImagingResizeSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for image resize settings.
diff --git a/src/Umbraco.Core/Configuration/Models/ImagingSettings.cs b/src/Umbraco.Core/Configuration/Models/ImagingSettings.cs
index 343e2a040f..273e53f384 100644
--- a/src/Umbraco.Core/Configuration/Models/ImagingSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ImagingSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for imaging settings.
diff --git a/src/Umbraco.Core/Configuration/Models/IndexCreatorSettings.cs b/src/Umbraco.Core/Configuration/Models/IndexCreatorSettings.cs
index 9ea7348211..5ae43f8d39 100644
--- a/src/Umbraco.Core/Configuration/Models/IndexCreatorSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/IndexCreatorSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for index creator settings.
diff --git a/src/Umbraco.Core/Configuration/Models/KeepAliveSettings.cs b/src/Umbraco.Core/Configuration/Models/KeepAliveSettings.cs
index 57336d35ac..831ad8d84d 100644
--- a/src/Umbraco.Core/Configuration/Models/KeepAliveSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/KeepAliveSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for keep alive settings.
diff --git a/src/Umbraco.Core/Configuration/Models/LoggingSettings.cs b/src/Umbraco.Core/Configuration/Models/LoggingSettings.cs
index 49f2517f8f..3f762e7577 100644
--- a/src/Umbraco.Core/Configuration/Models/LoggingSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/LoggingSettings.cs
@@ -3,7 +3,7 @@
using System;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for logging settings.
diff --git a/src/Umbraco.Core/Configuration/Models/MemberPasswordConfigurationSettings.cs b/src/Umbraco.Core/Configuration/Models/MemberPasswordConfigurationSettings.cs
index abd12ae023..33afc51db4 100644
--- a/src/Umbraco.Core/Configuration/Models/MemberPasswordConfigurationSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/MemberPasswordConfigurationSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for member password settings.
diff --git a/src/Umbraco.Core/Configuration/Models/ModelsBuilderSettings.cs b/src/Umbraco.Core/Configuration/Models/ModelsBuilderSettings.cs
index 4f5916822e..33d5bf534d 100644
--- a/src/Umbraco.Core/Configuration/Models/ModelsBuilderSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/ModelsBuilderSettings.cs
@@ -1,9 +1,9 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-using Umbraco.Configuration;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for models builder settings.
diff --git a/src/Umbraco.Core/Configuration/Models/NuCacheSettings.cs b/src/Umbraco.Core/Configuration/Models/NuCacheSettings.cs
index f98b1f422e..aa67038702 100644
--- a/src/Umbraco.Core/Configuration/Models/NuCacheSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/NuCacheSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for NuCache settings.
diff --git a/src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs b/src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs
index ceea0f9038..5f5032f7c3 100644
--- a/src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs
@@ -2,9 +2,10 @@
// See LICENSE for more details.
using System.Collections.Generic;
-using Umbraco.Core.Configuration.UmbracoSettings;
+using Umbraco.Cms.Core.Configuration.UmbracoSettings;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for request handler settings.
diff --git a/src/Umbraco.Core/Configuration/Models/RuntimeSettings.cs b/src/Umbraco.Core/Configuration/Models/RuntimeSettings.cs
index 97af22ea8a..c598dfb86b 100644
--- a/src/Umbraco.Core/Configuration/Models/RuntimeSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/RuntimeSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for runtime settings.
diff --git a/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs b/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs
index 25bbbb645d..a20e42ed08 100644
--- a/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for security settings.
diff --git a/src/Umbraco.Core/Configuration/Models/SmtpSettings.cs b/src/Umbraco.Core/Configuration/Models/SmtpSettings.cs
index fb4462f76d..9ad22abaeb 100644
--- a/src/Umbraco.Core/Configuration/Models/SmtpSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/SmtpSettings.cs
@@ -3,9 +3,9 @@
using System.ComponentModel.DataAnnotations;
using System.Net.Mail;
-using Umbraco.Core.Configuration.Models.Validation;
+using Umbraco.Cms.Core.Configuration.Models.Validation;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Matches MailKit.Security.SecureSocketOptions and defined locally to avoid having to take
diff --git a/src/Umbraco.Core/Configuration/Models/TourSettings.cs b/src/Umbraco.Core/Configuration/Models/TourSettings.cs
index 25c06b9975..c61c2316b7 100644
--- a/src/Umbraco.Core/Configuration/Models/TourSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/TourSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for tour settings.
diff --git a/src/Umbraco.Core/Configuration/Models/TypeFinderSettings.cs b/src/Umbraco.Core/Configuration/Models/TypeFinderSettings.cs
index 63295c7259..9c8fc2b9d3 100644
--- a/src/Umbraco.Core/Configuration/Models/TypeFinderSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/TypeFinderSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for type finder settings.
diff --git a/src/Umbraco.Core/Configuration/Models/UmbracoPluginSettings.cs b/src/Umbraco.Core/Configuration/Models/UmbracoPluginSettings.cs
index 907b29490d..6dcad67ce2 100644
--- a/src/Umbraco.Core/Configuration/Models/UmbracoPluginSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/UmbracoPluginSettings.cs
@@ -3,7 +3,7 @@
using System.Collections.Generic;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for the plugins.
diff --git a/src/Umbraco.Core/Configuration/Models/UserPasswordConfigurationSettings.cs b/src/Umbraco.Core/Configuration/Models/UserPasswordConfigurationSettings.cs
index 09b9200760..f609181460 100644
--- a/src/Umbraco.Core/Configuration/Models/UserPasswordConfigurationSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/UserPasswordConfigurationSettings.cs
@@ -1,7 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for user password settings.
diff --git a/src/Umbraco.Core/Configuration/Models/Validation/ConfigurationValidatorBase.cs b/src/Umbraco.Core/Configuration/Models/Validation/ConfigurationValidatorBase.cs
index 348c809a91..9f0a23467d 100644
--- a/src/Umbraco.Core/Configuration/Models/Validation/ConfigurationValidatorBase.cs
+++ b/src/Umbraco.Core/Configuration/Models/Validation/ConfigurationValidatorBase.cs
@@ -3,8 +3,9 @@
using System.Collections.Generic;
using System.Linq;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Configuration.Models.Validation
+namespace Umbraco.Cms.Core.Configuration.Models.Validation
{
///
/// Base class for configuration validators.
diff --git a/src/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidator.cs b/src/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidator.cs
index fdfd6de59c..d21d6277bf 100644
--- a/src/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidator.cs
+++ b/src/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidator.cs
@@ -4,7 +4,7 @@
using System.Collections.Generic;
using Microsoft.Extensions.Options;
-namespace Umbraco.Core.Configuration.Models.Validation
+namespace Umbraco.Cms.Core.Configuration.Models.Validation
{
///
/// Validator for configuration representated as .
diff --git a/src/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidator.cs b/src/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidator.cs
index 6bc9dc0a6f..b963bddc06 100644
--- a/src/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidator.cs
+++ b/src/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidator.cs
@@ -3,7 +3,7 @@
using Microsoft.Extensions.Options;
-namespace Umbraco.Core.Configuration.Models.Validation
+namespace Umbraco.Cms.Core.Configuration.Models.Validation
{
///
/// Validator for configuration representated as .
diff --git a/src/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidator.cs b/src/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidator.cs
index 449415c37f..a8b63f39a0 100644
--- a/src/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidator.cs
+++ b/src/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidator.cs
@@ -3,7 +3,7 @@
using Microsoft.Extensions.Options;
-namespace Umbraco.Core.Configuration.Models.Validation
+namespace Umbraco.Cms.Core.Configuration.Models.Validation
{
///
/// Validator for configuration representated as .
diff --git a/src/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidator.cs b/src/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidator.cs
index 647c7438c6..6260341c18 100644
--- a/src/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidator.cs
+++ b/src/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidator.cs
@@ -3,7 +3,7 @@
using Microsoft.Extensions.Options;
-namespace Umbraco.Core.Configuration.Models.Validation
+namespace Umbraco.Cms.Core.Configuration.Models.Validation
{
///
/// Validator for configuration representated as .
diff --git a/src/Umbraco.Core/Configuration/Models/Validation/ValidatableEntryBase.cs b/src/Umbraco.Core/Configuration/Models/Validation/ValidatableEntryBase.cs
index 37380eb9a6..970146a27e 100644
--- a/src/Umbraco.Core/Configuration/Models/Validation/ValidatableEntryBase.cs
+++ b/src/Umbraco.Core/Configuration/Models/Validation/ValidatableEntryBase.cs
@@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
-namespace Umbraco.Core.Configuration.Models.Validation
+namespace Umbraco.Cms.Core.Configuration.Models.Validation
{
///
/// Provides a base class for configuration models that can be validated based on data annotations.
diff --git a/src/Umbraco.Core/Configuration/Models/WebRoutingSettings.cs b/src/Umbraco.Core/Configuration/Models/WebRoutingSettings.cs
index d94fdd8496..2fe33603ca 100644
--- a/src/Umbraco.Core/Configuration/Models/WebRoutingSettings.cs
+++ b/src/Umbraco.Core/Configuration/Models/WebRoutingSettings.cs
@@ -1,9 +1,9 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
-using Umbraco.Core.Models.PublishedContent;
+using Umbraco.Cms.Core.Models.PublishedContent;
-namespace Umbraco.Core.Configuration.Models
+namespace Umbraco.Cms.Core.Configuration.Models
{
///
/// Typed configuration options for web routing settings.
diff --git a/src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs b/src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs
index ef80796c8b..3d620ee9e5 100644
--- a/src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs
+++ b/src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs
@@ -1,10 +1,9 @@
using System.Configuration;
using System.IO;
-using Umbraco.Core.Hosting;
-using Umbraco.Core.Configuration.Models;
-using Umbraco.Core.IO;
+using Umbraco.Cms.Core.Configuration.Models;
+using Umbraco.Cms.Core.Hosting;
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Extensions
{
public static class ModelsBuilderConfigExtensions
{
diff --git a/src/Umbraco.Core/Configuration/ModelsMode.cs b/src/Umbraco.Core/Configuration/ModelsMode.cs
index c3b32b1cab..1917f2b4cd 100644
--- a/src/Umbraco.Core/Configuration/ModelsMode.cs
+++ b/src/Umbraco.Core/Configuration/ModelsMode.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
///
/// Defines the models generation modes.
diff --git a/src/Umbraco.Core/Configuration/ModelsModeExtensions.cs b/src/Umbraco.Core/Configuration/ModelsModeExtensions.cs
index 6aae79ff8a..f5f4e9e09c 100644
--- a/src/Umbraco.Core/Configuration/ModelsModeExtensions.cs
+++ b/src/Umbraco.Core/Configuration/ModelsModeExtensions.cs
@@ -1,6 +1,6 @@
-using Umbraco.Core.Configuration;
+using Umbraco.Cms.Core.Configuration;
-namespace Umbraco.Configuration
+namespace Umbraco.Extensions
{
///
/// Provides extensions for the enumeration.
diff --git a/src/Umbraco.Core/Configuration/PasswordConfiguration.cs b/src/Umbraco.Core/Configuration/PasswordConfiguration.cs
index 0c5ed9adb0..506821df6d 100644
--- a/src/Umbraco.Core/Configuration/PasswordConfiguration.cs
+++ b/src/Umbraco.Core/Configuration/PasswordConfiguration.cs
@@ -1,7 +1,6 @@
using System;
-using Umbraco.Core.Configuration.UmbracoSettings;
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
public abstract class PasswordConfiguration : IPasswordConfiguration
{
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IChar.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IChar.cs
index bd33472ea9..4073a12149 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IChar.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IChar.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration.UmbracoSettings
+namespace Umbraco.Cms.Core.Configuration.UmbracoSettings
{
public interface IChar
{
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IImagingAutoFillUploadField.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IImagingAutoFillUploadField.cs
index 11b5e42e78..c7d91a6d0a 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IImagingAutoFillUploadField.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IImagingAutoFillUploadField.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration.UmbracoSettings
+namespace Umbraco.Cms.Core.Configuration.UmbracoSettings
{
public interface IImagingAutoFillUploadField
{
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IPasswordConfigurationSection.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IPasswordConfigurationSection.cs
index a561b7808e..d79d8940c3 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IPasswordConfigurationSection.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IPasswordConfigurationSection.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Configuration.UmbracoSettings
+namespace Umbraco.Cms.Core.Configuration.UmbracoSettings
{
public interface IPasswordConfigurationSection : IUmbracoConfigurationSection
{
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/ITypeFinderConfig.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/ITypeFinderConfig.cs
index a290c26d15..903f21f21a 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/ITypeFinderConfig.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/ITypeFinderConfig.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace Umbraco.Core.Configuration.UmbracoSettings
+namespace Umbraco.Cms.Core.Configuration.UmbracoSettings
{
public interface ITypeFinderConfig
{
diff --git a/src/Umbraco.Core/Configuration/UmbracoVersion.cs b/src/Umbraco.Core/Configuration/UmbracoVersion.cs
index 2e45be6cc6..c67ae5a7e5 100644
--- a/src/Umbraco.Core/Configuration/UmbracoVersion.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoVersion.cs
@@ -1,8 +1,9 @@
using System;
using System.Reflection;
-using Semver;
+using Umbraco.Cms.Core.Semver;
+using Umbraco.Extensions;
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
///
/// Represents the version of the executing code.
diff --git a/src/Umbraco.Core/Configuration/UserPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/UserPasswordConfiguration.cs
index 07e6603cee..6c30fbba71 100644
--- a/src/Umbraco.Core/Configuration/UserPasswordConfiguration.cs
+++ b/src/Umbraco.Core/Configuration/UserPasswordConfiguration.cs
@@ -1,6 +1,4 @@
-using Umbraco.Core.Configuration.UmbracoSettings;
-
-namespace Umbraco.Core.Configuration
+namespace Umbraco.Cms.Core.Configuration
{
///
/// The password configuration for back office users
diff --git a/src/Umbraco.Core/Constants-AppSettings.cs b/src/Umbraco.Core/Constants-AppSettings.cs
index 594be2966a..1fd3720bb9 100644
--- a/src/Umbraco.Core/Constants-AppSettings.cs
+++ b/src/Umbraco.Core/Constants-AppSettings.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-Applications.cs b/src/Umbraco.Core/Constants-Applications.cs
index cf4f80d87b..da945731af 100644
--- a/src/Umbraco.Core/Constants-Applications.cs
+++ b/src/Umbraco.Core/Constants-Applications.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-Composing.cs b/src/Umbraco.Core/Constants-Composing.cs
index e65629a278..a92f71ee04 100644
--- a/src/Umbraco.Core/Constants-Composing.cs
+++ b/src/Umbraco.Core/Constants-Composing.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
///
/// Defines constants.
diff --git a/src/Umbraco.Core/Constants-Configuration.cs b/src/Umbraco.Core/Constants-Configuration.cs
index 451ac5d438..6ad3e0fda0 100644
--- a/src/Umbraco.Core/Constants-Configuration.cs
+++ b/src/Umbraco.Core/Constants-Configuration.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-Conventions.cs b/src/Umbraco.Core/Constants-Conventions.cs
index 0bfb890abd..92b1113ad0 100644
--- a/src/Umbraco.Core/Constants-Conventions.cs
+++ b/src/Umbraco.Core/Constants-Conventions.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using Umbraco.Core.Models;
-
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-DataTypes.cs b/src/Umbraco.Core/Constants-DataTypes.cs
index c6f6c6478e..2cbc254e28 100644
--- a/src/Umbraco.Core/Constants-DataTypes.cs
+++ b/src/Umbraco.Core/Constants-DataTypes.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-DatabaseProviders.cs b/src/Umbraco.Core/Constants-DatabaseProviders.cs
index e93e524bbc..da82746445 100644
--- a/src/Umbraco.Core/Constants-DatabaseProviders.cs
+++ b/src/Umbraco.Core/Constants-DatabaseProviders.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-DeploySelector.cs b/src/Umbraco.Core/Constants-DeploySelector.cs
index f6f3f5fbae..30daacf42b 100644
--- a/src/Umbraco.Core/Constants-DeploySelector.cs
+++ b/src/Umbraco.Core/Constants-DeploySelector.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-HealthChecks.cs b/src/Umbraco.Core/Constants-HealthChecks.cs
index c582e8ac34..5770bd07e4 100644
--- a/src/Umbraco.Core/Constants-HealthChecks.cs
+++ b/src/Umbraco.Core/Constants-HealthChecks.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
///
/// Defines constants.
diff --git a/src/Umbraco.Core/Constants-Icons.cs b/src/Umbraco.Core/Constants-Icons.cs
index 05213ed1c4..73051f5e95 100644
--- a/src/Umbraco.Core/Constants-Icons.cs
+++ b/src/Umbraco.Core/Constants-Icons.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-Indexes.cs b/src/Umbraco.Core/Constants-Indexes.cs
index 1add0f721b..8384faa08d 100644
--- a/src/Umbraco.Core/Constants-Indexes.cs
+++ b/src/Umbraco.Core/Constants-Indexes.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-ModelsBuilder.cs b/src/Umbraco.Core/Constants-ModelsBuilder.cs
index 28e70ed383..289c0355a8 100644
--- a/src/Umbraco.Core/Constants-ModelsBuilder.cs
+++ b/src/Umbraco.Core/Constants-ModelsBuilder.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
///
/// Defines constants.
@@ -10,8 +10,7 @@
///
public static class ModelsBuilder
{
-
- public const string DefaultModelsNamespace = "Umbraco.Web.PublishedModels";
+ public const string DefaultModelsNamespace = "Umbraco.Cms.Web.Common.PublishedModels";
}
}
}
diff --git a/src/Umbraco.Core/Constants-ObjectTypes.cs b/src/Umbraco.Core/Constants-ObjectTypes.cs
index dacd7d9fc5..0a9847b848 100644
--- a/src/Umbraco.Core/Constants-ObjectTypes.cs
+++ b/src/Umbraco.Core/Constants-ObjectTypes.cs
@@ -1,6 +1,6 @@
using System;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-PackageRepository.cs b/src/Umbraco.Core/Constants-PackageRepository.cs
index 42cf61f982..96ef39b7c1 100644
--- a/src/Umbraco.Core/Constants-PackageRepository.cs
+++ b/src/Umbraco.Core/Constants-PackageRepository.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-PropertyEditors.cs b/src/Umbraco.Core/Constants-PropertyEditors.cs
index eb24cf4229..815f85b3a6 100644
--- a/src/Umbraco.Core/Constants-PropertyEditors.cs
+++ b/src/Umbraco.Core/Constants-PropertyEditors.cs
@@ -1,6 +1,6 @@
-using Umbraco.Core.PropertyEditors;
+using Umbraco.Cms.Core.PropertyEditors;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-PropertyTypeGroups.cs b/src/Umbraco.Core/Constants-PropertyTypeGroups.cs
index d3402e69f8..a8dc3c84f8 100644
--- a/src/Umbraco.Core/Constants-PropertyTypeGroups.cs
+++ b/src/Umbraco.Core/Constants-PropertyTypeGroups.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-Security.cs b/src/Umbraco.Core/Constants-Security.cs
index ccb0109ebd..ba0f1e0a37 100644
--- a/src/Umbraco.Core/Constants-Security.cs
+++ b/src/Umbraco.Core/Constants-Security.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-SqlTemplates.cs b/src/Umbraco.Core/Constants-SqlTemplates.cs
index 5a78b62f5b..116f04925e 100644
--- a/src/Umbraco.Core/Constants-SqlTemplates.cs
+++ b/src/Umbraco.Core/Constants-SqlTemplates.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-SvgSanitizer.cs b/src/Umbraco.Core/Constants-SvgSanitizer.cs
index c92b9f56c7..048bf404d4 100644
--- a/src/Umbraco.Core/Constants-SvgSanitizer.cs
+++ b/src/Umbraco.Core/Constants-SvgSanitizer.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-System.cs b/src/Umbraco.Core/Constants-System.cs
index 837db01b63..44ee99c420 100644
--- a/src/Umbraco.Core/Constants-System.cs
+++ b/src/Umbraco.Core/Constants-System.cs
@@ -1,4 +1,4 @@
- namespace Umbraco.Core
+ namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-SystemDirectories.cs b/src/Umbraco.Core/Constants-SystemDirectories.cs
index 464896edd9..46eab35343 100644
--- a/src/Umbraco.Core/Constants-SystemDirectories.cs
+++ b/src/Umbraco.Core/Constants-SystemDirectories.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-UdiEntityType.cs b/src/Umbraco.Core/Constants-UdiEntityType.cs
index aaaa47d4b2..01e9ca213d 100644
--- a/src/Umbraco.Core/Constants-UdiEntityType.cs
+++ b/src/Umbraco.Core/Constants-UdiEntityType.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/Constants-Web.cs b/src/Umbraco.Core/Constants-Web.cs
index d63106daf6..13cd7d7ad3 100644
--- a/src/Umbraco.Core/Constants-Web.cs
+++ b/src/Umbraco.Core/Constants-Web.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static partial class Constants
{
diff --git a/src/Umbraco.Core/ContentApps/ContentAppFactoryCollection.cs b/src/Umbraco.Core/ContentApps/ContentAppFactoryCollection.cs
index 738da5ef60..d8b3e04772 100644
--- a/src/Umbraco.Core/ContentApps/ContentAppFactoryCollection.cs
+++ b/src/Umbraco.Core/ContentApps/ContentAppFactoryCollection.cs
@@ -1,13 +1,13 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Logging;
-using Umbraco.Core;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Models.ContentEditing;
-using Umbraco.Core.Models.Membership;
-using Umbraco.Core.Security;
+using Umbraco.Cms.Core.Composing;
+using Umbraco.Cms.Core.Models.ContentEditing;
+using Umbraco.Cms.Core.Models.Membership;
+using Umbraco.Cms.Core.Security;
+using Umbraco.Extensions;
-namespace Umbraco.Web.ContentApps
+namespace Umbraco.Cms.Core.ContentApps
{
public class ContentAppFactoryCollection : BuilderCollectionBase
{
diff --git a/src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs b/src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs
index 138c426043..3c35054e9b 100644
--- a/src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs
+++ b/src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs
@@ -3,15 +3,13 @@ using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
-using Umbraco.Core;
-using Umbraco.Core.Composing;
-using Umbraco.Core.IO;
-using Umbraco.Core.Manifest;
-using Umbraco.Core.Models.ContentEditing;
-using Umbraco.Core.Models.Identity;
-using Umbraco.Core.Security;
+using Umbraco.Cms.Core.Composing;
+using Umbraco.Cms.Core.IO;
+using Umbraco.Cms.Core.Manifest;
+using Umbraco.Cms.Core.Models.ContentEditing;
+using Umbraco.Cms.Core.Security;
-namespace Umbraco.Web.ContentApps
+namespace Umbraco.Cms.Core.ContentApps
{
public class ContentAppFactoryCollectionBuilder : OrderedCollectionBuilderBase
{
diff --git a/src/Umbraco.Core/ContentApps/ContentEditorContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentEditorContentAppFactory.cs
index 34652744ee..44cd9d5bbe 100644
--- a/src/Umbraco.Core/ContentApps/ContentEditorContentAppFactory.cs
+++ b/src/Umbraco.Core/ContentApps/ContentEditorContentAppFactory.cs
@@ -1,11 +1,9 @@
-using System;
-using System.Collections.Generic;
-using Umbraco.Core;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.ContentEditing;
-using Umbraco.Core.Models.Membership;
+using System.Collections.Generic;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.ContentEditing;
+using Umbraco.Cms.Core.Models.Membership;
-namespace Umbraco.Web.ContentApps
+namespace Umbraco.Cms.Core.ContentApps
{
public class ContentEditorContentAppFactory : IContentAppFactory
{
diff --git a/src/Umbraco.Core/ContentApps/ContentInfoContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentInfoContentAppFactory.cs
index abad7f4bf8..865218b134 100644
--- a/src/Umbraco.Core/ContentApps/ContentInfoContentAppFactory.cs
+++ b/src/Umbraco.Core/ContentApps/ContentInfoContentAppFactory.cs
@@ -1,10 +1,9 @@
-using System;
-using System.Collections.Generic;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.ContentEditing;
-using Umbraco.Core.Models.Membership;
+using System.Collections.Generic;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.ContentEditing;
+using Umbraco.Cms.Core.Models.Membership;
-namespace Umbraco.Web.ContentApps
+namespace Umbraco.Cms.Core.ContentApps
{
public class ContentInfoContentAppFactory : IContentAppFactory
{
diff --git a/src/Umbraco.Core/ContentApps/ContentTypeDesignContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentTypeDesignContentAppFactory.cs
index 361d59a5d5..dd9502ae63 100644
--- a/src/Umbraco.Core/ContentApps/ContentTypeDesignContentAppFactory.cs
+++ b/src/Umbraco.Core/ContentApps/ContentTypeDesignContentAppFactory.cs
@@ -1,10 +1,9 @@
-using System;
-using System.Collections.Generic;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.ContentEditing;
-using Umbraco.Core.Models.Membership;
+using System.Collections.Generic;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.ContentEditing;
+using Umbraco.Cms.Core.Models.Membership;
-namespace Umbraco.Web.ContentApps
+namespace Umbraco.Cms.Core.ContentApps
{
public class ContentTypeDesignContentAppFactory : IContentAppFactory
{
diff --git a/src/Umbraco.Core/ContentApps/ContentTypeListViewContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentTypeListViewContentAppFactory.cs
index a04ab04668..079f639acf 100644
--- a/src/Umbraco.Core/ContentApps/ContentTypeListViewContentAppFactory.cs
+++ b/src/Umbraco.Core/ContentApps/ContentTypeListViewContentAppFactory.cs
@@ -1,10 +1,9 @@
-using System;
-using System.Collections.Generic;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.ContentEditing;
-using Umbraco.Core.Models.Membership;
+using System.Collections.Generic;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.ContentEditing;
+using Umbraco.Cms.Core.Models.Membership;
-namespace Umbraco.Web.ContentApps
+namespace Umbraco.Cms.Core.ContentApps
{
public class ContentTypeListViewContentAppFactory : IContentAppFactory
{
diff --git a/src/Umbraco.Core/ContentApps/ContentTypePermissionsContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentTypePermissionsContentAppFactory.cs
index a86c4327fd..872bebda62 100644
--- a/src/Umbraco.Core/ContentApps/ContentTypePermissionsContentAppFactory.cs
+++ b/src/Umbraco.Core/ContentApps/ContentTypePermissionsContentAppFactory.cs
@@ -1,10 +1,9 @@
-using System;
-using System.Collections.Generic;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.ContentEditing;
-using Umbraco.Core.Models.Membership;
+using System.Collections.Generic;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.ContentEditing;
+using Umbraco.Cms.Core.Models.Membership;
-namespace Umbraco.Web.ContentApps
+namespace Umbraco.Cms.Core.ContentApps
{
public class ContentTypePermissionsContentAppFactory : IContentAppFactory
{
diff --git a/src/Umbraco.Core/ContentApps/ContentTypeTemplatesContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentTypeTemplatesContentAppFactory.cs
index e20e2ef9c5..38a8fd388e 100644
--- a/src/Umbraco.Core/ContentApps/ContentTypeTemplatesContentAppFactory.cs
+++ b/src/Umbraco.Core/ContentApps/ContentTypeTemplatesContentAppFactory.cs
@@ -1,10 +1,9 @@
-using System;
-using System.Collections.Generic;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.ContentEditing;
-using Umbraco.Core.Models.Membership;
+using System.Collections.Generic;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.ContentEditing;
+using Umbraco.Cms.Core.Models.Membership;
-namespace Umbraco.Web.ContentApps
+namespace Umbraco.Cms.Core.ContentApps
{
public class ContentTypeTemplatesContentAppFactory : IContentAppFactory
{
diff --git a/src/Umbraco.Core/ContentApps/ListViewContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ListViewContentAppFactory.cs
index ada6bb6cd7..e945f7ffd4 100644
--- a/src/Umbraco.Core/ContentApps/ListViewContentAppFactory.cs
+++ b/src/Umbraco.Core/ContentApps/ListViewContentAppFactory.cs
@@ -1,14 +1,13 @@
using System;
using System.Collections.Generic;
-using Umbraco.Core;
-using Umbraco.Core.Models;
-using Umbraco.Core.Models.ContentEditing;
-using Umbraco.Core.Models.Membership;
-using Umbraco.Core.PropertyEditors;
-using Umbraco.Core.Services;
-using Umbraco.Web.Models.ContentEditing;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Models.ContentEditing;
+using Umbraco.Cms.Core.Models.Membership;
+using Umbraco.Cms.Core.PropertyEditors;
+using Umbraco.Cms.Core.Services;
+using Umbraco.Extensions;
-namespace Umbraco.Web.ContentApps
+namespace Umbraco.Cms.Core.ContentApps
{
public class ListViewContentAppFactory : IContentAppFactory
{
@@ -36,14 +35,14 @@ namespace Umbraco.Web.ContentApps
case IContent content:
contentTypeAlias = content.ContentType.Alias;
entityType = "content";
- dtdId = Core.Constants.DataTypes.DefaultContentListView;
+ dtdId = Constants.DataTypes.DefaultContentListView;
break;
- case IMedia media when !media.ContentType.IsContainer && media.ContentType.Alias != Core.Constants.Conventions.MediaTypes.Folder:
+ case IMedia media when !media.ContentType.IsContainer && media.ContentType.Alias != Constants.Conventions.MediaTypes.Folder:
return null;
case IMedia media:
contentTypeAlias = media.ContentType.Alias;
entityType = "media";
- dtdId = Core.Constants.DataTypes.DefaultMediaListView;
+ dtdId = Constants.DataTypes.DefaultMediaListView;
break;
default:
return null;
@@ -72,7 +71,7 @@ namespace Umbraco.Web.ContentApps
Weight = Weight
};
- var customDtdName = Core.Constants.Conventions.DataTypes.ListViewPrefix + contentTypeAlias;
+ var customDtdName = Constants.Conventions.DataTypes.ListViewPrefix + contentTypeAlias;
//first try to get the custom one if there is one
var dt = dataTypeService.GetDataType(customDtdName)
@@ -121,7 +120,7 @@ namespace Umbraco.Web.ContentApps
{
new ContentPropertyDisplay
{
- Alias = $"{Core.Constants.PropertyEditors.InternalGenericPropertiesPrefix}containerView",
+ Alias = $"{Constants.PropertyEditors.InternalGenericPropertiesPrefix}containerView",
Label = "",
Value = null,
View = editor.GetValueEditor().View,
diff --git a/src/Umbraco.Core/ConventionsHelper.cs b/src/Umbraco.Core/ConventionsHelper.cs
index d4b784875b..f5e0b168b9 100644
--- a/src/Umbraco.Core/ConventionsHelper.cs
+++ b/src/Umbraco.Core/ConventionsHelper.cs
@@ -1,8 +1,8 @@
using System.Collections.Generic;
-using Umbraco.Core.Models;
-using Umbraco.Core.Strings;
+using Umbraco.Cms.Core.Models;
+using Umbraco.Cms.Core.Strings;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
public static class ConventionsHelper
{
diff --git a/src/Umbraco.Core/CustomBooleanTypeConverter.cs b/src/Umbraco.Core/CustomBooleanTypeConverter.cs
index dc4c5472e1..e528b9638d 100644
--- a/src/Umbraco.Core/CustomBooleanTypeConverter.cs
+++ b/src/Umbraco.Core/CustomBooleanTypeConverter.cs
@@ -1,7 +1,7 @@
using System;
using System.ComponentModel;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
///
/// Allows for converting string representations of 0 and 1 to boolean
diff --git a/src/Umbraco.Core/Dashboards/AccessRule.cs b/src/Umbraco.Core/Dashboards/AccessRule.cs
index 4f725e32f0..b1b5c37bd6 100644
--- a/src/Umbraco.Core/Dashboards/AccessRule.cs
+++ b/src/Umbraco.Core/Dashboards/AccessRule.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
///
/// Implements .
diff --git a/src/Umbraco.Core/Dashboards/AccessRuleType.cs b/src/Umbraco.Core/Dashboards/AccessRuleType.cs
index efed361f6c..103d944de8 100644
--- a/src/Umbraco.Core/Dashboards/AccessRuleType.cs
+++ b/src/Umbraco.Core/Dashboards/AccessRuleType.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
///
/// Defines dashboard access rules type.
diff --git a/src/Umbraco.Core/Dashboards/ContentDashboard.cs b/src/Umbraco.Core/Dashboards/ContentDashboard.cs
index 0cd96f738c..b959851cc7 100644
--- a/src/Umbraco.Core/Dashboards/ContentDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/ContentDashboard.cs
@@ -1,8 +1,6 @@
-using Umbraco.Core;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(10)]
public class ContentDashboard : IDashboard
diff --git a/src/Umbraco.Core/Dashboards/DashboardCollection.cs b/src/Umbraco.Core/Dashboards/DashboardCollection.cs
index 616a2cc8cc..9fa13f1d3d 100644
--- a/src/Umbraco.Core/Dashboards/DashboardCollection.cs
+++ b/src/Umbraco.Core/Dashboards/DashboardCollection.cs
@@ -1,8 +1,7 @@
using System.Collections.Generic;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
public class DashboardCollection : BuilderCollectionBase
{
diff --git a/src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs b/src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs
index 7ed241b819..9fc60ce111 100644
--- a/src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs
+++ b/src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs
@@ -2,12 +2,11 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
-using Umbraco.Core;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
-using Umbraco.Core.Manifest;
+using Umbraco.Cms.Core.Composing;
+using Umbraco.Cms.Core.Manifest;
+using Umbraco.Extensions;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
public class DashboardCollectionBuilder : WeightedCollectionBuilderBase
{
diff --git a/src/Umbraco.Core/Dashboards/DashboardSlim.cs b/src/Umbraco.Core/Dashboards/DashboardSlim.cs
index a2869a90a2..2b39c91100 100644
--- a/src/Umbraco.Core/Dashboards/DashboardSlim.cs
+++ b/src/Umbraco.Core/Dashboards/DashboardSlim.cs
@@ -1,6 +1,6 @@
using System.Runtime.Serialization;
-namespace Umbraco.Core.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[DataContract(IsReference = true)]
public class DashboardSlim : IDashboardSlim
diff --git a/src/Umbraco.Core/Dashboards/ExamineDashboard.cs b/src/Umbraco.Core/Dashboards/ExamineDashboard.cs
index 47cf97ca3b..5411f1d3ce 100644
--- a/src/Umbraco.Core/Dashboards/ExamineDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/ExamineDashboard.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(20)]
public class ExamineDashboard : IDashboard
diff --git a/src/Umbraco.Core/Dashboards/FormsDashboard.cs b/src/Umbraco.Core/Dashboards/FormsDashboard.cs
index 867e8af3aa..c56ad7c51a 100644
--- a/src/Umbraco.Core/Dashboards/FormsDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/FormsDashboard.cs
@@ -1,9 +1,7 @@
using System;
-using Umbraco.Core;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(10)]
public class FormsDashboard : IDashboard
diff --git a/src/Umbraco.Core/Dashboards/HealthCheckDashboard.cs b/src/Umbraco.Core/Dashboards/HealthCheckDashboard.cs
index 746dd04439..24b4efaf6d 100644
--- a/src/Umbraco.Core/Dashboards/HealthCheckDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/HealthCheckDashboard.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(50)]
public class HealthCheckDashboard : IDashboard
diff --git a/src/Umbraco.Core/Dashboards/IAccessRule.cs b/src/Umbraco.Core/Dashboards/IAccessRule.cs
index f44a846248..13d118e195 100644
--- a/src/Umbraco.Core/Dashboards/IAccessRule.cs
+++ b/src/Umbraco.Core/Dashboards/IAccessRule.cs
@@ -1,4 +1,4 @@
-namespace Umbraco.Core.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
///
/// Represents an access rule.
diff --git a/src/Umbraco.Core/Dashboards/IDashboard.cs b/src/Umbraco.Core/Dashboards/IDashboard.cs
index 6e429d9b40..41a60cb518 100644
--- a/src/Umbraco.Core/Dashboards/IDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/IDashboard.cs
@@ -1,7 +1,6 @@
using System.Runtime.Serialization;
-using Umbraco.Core.Composing;
-namespace Umbraco.Core.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
///
/// Represents a dashboard.
diff --git a/src/Umbraco.Core/Dashboards/IDashboardSlim.cs b/src/Umbraco.Core/Dashboards/IDashboardSlim.cs
index 655f56dfd9..c85b969b83 100644
--- a/src/Umbraco.Core/Dashboards/IDashboardSlim.cs
+++ b/src/Umbraco.Core/Dashboards/IDashboardSlim.cs
@@ -1,6 +1,6 @@
using System.Runtime.Serialization;
-namespace Umbraco.Core.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
///
/// Represents a dashboard with only minimal data.
@@ -19,4 +19,4 @@ namespace Umbraco.Core.Dashboards
[DataMember(Name = "view")]
string View { get; }
}
-}
\ No newline at end of file
+}
diff --git a/src/Umbraco.Core/Dashboards/MediaDashboard.cs b/src/Umbraco.Core/Dashboards/MediaDashboard.cs
index c97ae298f3..acbad0bc2a 100644
--- a/src/Umbraco.Core/Dashboards/MediaDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/MediaDashboard.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(10)]
public class MediaDashboard : IDashboard
diff --git a/src/Umbraco.Core/Dashboards/MembersDashboard.cs b/src/Umbraco.Core/Dashboards/MembersDashboard.cs
index 473722dce1..3023d63b8a 100644
--- a/src/Umbraco.Core/Dashboards/MembersDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/MembersDashboard.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(10)]
public class MembersDashboard : IDashboard
diff --git a/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderDashboard.cs b/src/Umbraco.Core/Dashboards/ModelsBuilderDashboard.cs
similarity index 78%
rename from src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderDashboard.cs
rename to src/Umbraco.Core/Dashboards/ModelsBuilderDashboard.cs
index 867b22d14b..9ba5c9dd0c 100644
--- a/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/ModelsBuilderDashboard.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.ModelsBuilder.Embedded
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(40)]
public class ModelsBuilderDashboard : IDashboard
diff --git a/src/Umbraco.Core/Dashboards/ProfilerDashboard.cs b/src/Umbraco.Core/Dashboards/ProfilerDashboard.cs
index 98cd7fcc92..7a3829209f 100644
--- a/src/Umbraco.Core/Dashboards/ProfilerDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/ProfilerDashboard.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(60)]
public class ProfilerDashboard : IDashboard
diff --git a/src/Umbraco.Core/Dashboards/PublishedStatusDashboard.cs b/src/Umbraco.Core/Dashboards/PublishedStatusDashboard.cs
index 66faa20b55..5cae4594f7 100644
--- a/src/Umbraco.Core/Dashboards/PublishedStatusDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/PublishedStatusDashboard.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(30)]
public class PublishedStatusDashboard : IDashboard
diff --git a/src/Umbraco.Core/Dashboards/RedirectUrlDashboard.cs b/src/Umbraco.Core/Dashboards/RedirectUrlDashboard.cs
index f538cbc122..15eb883697 100644
--- a/src/Umbraco.Core/Dashboards/RedirectUrlDashboard.cs
+++ b/src/Umbraco.Core/Dashboards/RedirectUrlDashboard.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(20)]
public class RedirectUrlDashboard : IDashboard
diff --git a/src/Umbraco.Core/Dashboards/SettingsDashboards.cs b/src/Umbraco.Core/Dashboards/SettingsDashboards.cs
index 5cd92e4c3f..e5f37fd5a3 100644
--- a/src/Umbraco.Core/Dashboards/SettingsDashboards.cs
+++ b/src/Umbraco.Core/Dashboards/SettingsDashboards.cs
@@ -1,8 +1,7 @@
using System;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Web.Dashboards
+namespace Umbraco.Cms.Core.Dashboards
{
[Weight(10)]
public class SettingsDashboard : IDashboard
diff --git a/src/Umbraco.Core/DefaultEventMessagesFactory.cs b/src/Umbraco.Core/DefaultEventMessagesFactory.cs
index 0d53645b5e..b795045f32 100644
--- a/src/Umbraco.Core/DefaultEventMessagesFactory.cs
+++ b/src/Umbraco.Core/DefaultEventMessagesFactory.cs
@@ -1,7 +1,7 @@
using System;
-using Umbraco.Core.Events;
+using Umbraco.Cms.Core.Events;
-namespace Umbraco.Web
+namespace Umbraco.Cms.Core
{
public class DefaultEventMessagesFactory : IEventMessagesFactory
{
diff --git a/src/Umbraco.Core/DelegateEqualityComparer.cs b/src/Umbraco.Core/DelegateEqualityComparer.cs
index dae990c635..6aabbf62f4 100644
--- a/src/Umbraco.Core/DelegateEqualityComparer.cs
+++ b/src/Umbraco.Core/DelegateEqualityComparer.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
-namespace Umbraco.Core
+namespace Umbraco.Cms.Core
{
///
/// A custom equality comparer that excepts a delegate to do the comparison operation
diff --git a/src/Umbraco.Core/DependencyInjection/IUmbracoBuilder.cs b/src/Umbraco.Core/DependencyInjection/IUmbracoBuilder.cs
index f532f8cdaa..0b65c3443c 100644
--- a/src/Umbraco.Core/DependencyInjection/IUmbracoBuilder.cs
+++ b/src/Umbraco.Core/DependencyInjection/IUmbracoBuilder.cs
@@ -1,9 +1,9 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
-using Umbraco.Core.Composing;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Core.DependencyInjection
+namespace Umbraco.Cms.Core.DependencyInjection
{
public interface IUmbracoBuilder
{
diff --git a/src/Umbraco.Core/DependencyInjection/ServiceCollectionExtensions.cs b/src/Umbraco.Core/DependencyInjection/ServiceCollectionExtensions.cs
index 97e70da9be..cec1cbb4eb 100644
--- a/src/Umbraco.Core/DependencyInjection/ServiceCollectionExtensions.cs
+++ b/src/Umbraco.Core/DependencyInjection/ServiceCollectionExtensions.cs
@@ -1,10 +1,9 @@
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-using Umbraco.Core;
-using Umbraco.Core.Composing;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Core.DependencyInjection
+namespace Umbraco.Extensions
{
public static class ServiceCollectionExtensions
{
diff --git a/src/Umbraco.Core/DependencyInjection/ServiceProviderExtensions.cs b/src/Umbraco.Core/DependencyInjection/ServiceProviderExtensions.cs
index 2c17709b33..9bcc0cf7f8 100644
--- a/src/Umbraco.Core/DependencyInjection/ServiceProviderExtensions.cs
+++ b/src/Umbraco.Core/DependencyInjection/ServiceProviderExtensions.cs
@@ -3,10 +3,10 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Models.PublishedContent;
+using Umbraco.Cms.Core.Composing;
+using Umbraco.Cms.Core.Models.PublishedContent;
-namespace Umbraco.Core.DependencyInjection
+namespace Umbraco.Extensions
{
///
/// Provides extension methods to the class.
diff --git a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs
index e964852129..61802eaddd 100644
--- a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs
+++ b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs
@@ -1,24 +1,24 @@
-using Umbraco.Core.Cache;
-using Umbraco.Core.Composing;
-using Umbraco.Core.Dashboards;
-using Umbraco.Core.HealthChecks;
-using Umbraco.Core.HealthChecks.NotificationMethods;
-using Umbraco.Core.Manifest;
-using Umbraco.Core.PackageActions;
-using Umbraco.Core.PropertyEditors;
-using Umbraco.Core.PropertyEditors.Validators;
-using Umbraco.Core.Strings;
-using Umbraco.Core.Trees;
-using Umbraco.Web.Actions;
-using Umbraco.Web.ContentApps;
-using Umbraco.Web.Dashboards;
-using Umbraco.Web.Editors;
-using Umbraco.Web.Media.EmbedProviders;
-using Umbraco.Web.Routing;
-using Umbraco.Web.Sections;
-using Umbraco.Web.Tour;
+using Umbraco.Cms.Core.Actions;
+using Umbraco.Cms.Core.Cache;
+using Umbraco.Cms.Core.Composing;
+using Umbraco.Cms.Core.ContentApps;
+using Umbraco.Cms.Core.Dashboards;
+using Umbraco.Cms.Core.Editors;
+using Umbraco.Cms.Core.HealthChecks;
+using Umbraco.Cms.Core.HealthChecks.NotificationMethods;
+using Umbraco.Cms.Core.Manifest;
+using Umbraco.Cms.Core.Media.EmbedProviders;
+using Umbraco.Cms.Core.PackageActions;
+using Umbraco.Cms.Core.PropertyEditors;
+using Umbraco.Cms.Core.PropertyEditors.Validators;
+using Umbraco.Cms.Core.Routing;
+using Umbraco.Cms.Core.Sections;
+using Umbraco.Cms.Core.Strings;
+using Umbraco.Cms.Core.Tour;
+using Umbraco.Cms.Core.Trees;
+using Umbraco.Extensions;
-namespace Umbraco.Core.DependencyInjection
+namespace Umbraco.Cms.Core.DependencyInjection
{
///
/// Extension methods for
@@ -44,7 +44,7 @@ namespace Umbraco.Core.DependencyInjection
.Append();
// all built-in finders in the correct order,
// devs can then modify this list on application startup
- builder.ContentFinders()
+ builder.ContentFinders()
.Append()
.Append()
.Append()
diff --git a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Composers.cs b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Composers.cs
index 5bd2fe9e8c..b6f9e7ae88 100644
--- a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Composers.cs
+++ b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Composers.cs
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using Microsoft.Extensions.Logging;
-using Umbraco.Core.Composing;
+using Umbraco.Cms.Core.Composing;
-namespace Umbraco.Core.DependencyInjection
+namespace Umbraco.Cms.Core.DependencyInjection
{
///
/// Extension methods for
diff --git a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs
index a31a44beeb..f987e29eac 100644
--- a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs
+++ b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs
@@ -1,9 +1,9 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
-using Umbraco.Core.Configuration.Models;
-using Umbraco.Core.Configuration.Models.Validation;
+using Umbraco.Cms.Core.Configuration.Models;
+using Umbraco.Cms.Core.Configuration.Models.Validation;
-namespace Umbraco.Core.DependencyInjection
+namespace Umbraco.Cms.Core.DependencyInjection
{
///
/// Extension methods for
@@ -22,29 +22,29 @@ namespace Umbraco.Core.DependencyInjection
builder.Services.AddSingleton, RequestHandlerSettingsValidator>();
// Register configuration sections.
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigActiveDirectory));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigActiveDirectory));
builder.Services.Configure(builder.Config.GetSection("ConnectionStrings"), o => o.BindNonPublicProperties = true);
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigContent));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigCoreDebug));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigExceptionFilter));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigGlobal));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigHealthChecks));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigHosting));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigImaging));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigExamine));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigKeepAlive));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigLogging));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigMemberPassword));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigModelsBuilder), o => o.BindNonPublicProperties = true);
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigNuCache));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigRequestHandler));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigRuntime));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigSecurity));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigTours));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigTypeFinder));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigUserPassword));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigWebRouting));
- builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigPlugins));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigContent));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigCoreDebug));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigExceptionFilter));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigGlobal));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigHealthChecks));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigHosting));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigImaging));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigExamine));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigKeepAlive));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigLogging));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigMemberPassword));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigModelsBuilder), o => o.BindNonPublicProperties = true);
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigNuCache));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigRequestHandler));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigRuntime));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigSecurity));
+ builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigTours));
+ builder.Services.Configure