diff --git a/Oqtane.Server/Extensions/OqtaneServiceCollectionExtensions.cs b/Oqtane.Server/Extensions/OqtaneServiceCollectionExtensions.cs index 8f73661d..2fd109ba 100644 --- a/Oqtane.Server/Extensions/OqtaneServiceCollectionExtensions.cs +++ b/Oqtane.Server/Extensions/OqtaneServiceCollectionExtensions.cs @@ -99,9 +99,6 @@ namespace Microsoft.Extensions.DependencyInjection services.AddScoped(); services.AddScoped(); - // alternative used within infrastructure classes - services.AddScoped(); - return services; } diff --git a/Oqtane.Server/Infrastructure/SiteState.cs b/Oqtane.Server/Infrastructure/SiteState.cs deleted file mode 100644 index d765f90d..00000000 --- a/Oqtane.Server/Infrastructure/SiteState.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Oqtane.Models; - -namespace Oqtane.Infrastructure -{ - public class SiteState - { - public Alias Alias { get; set; } - } -} diff --git a/Oqtane.Server/Infrastructure/TenantManager.cs b/Oqtane.Server/Infrastructure/TenantManager.cs index 92191f4e..ea342fc7 100644 --- a/Oqtane.Server/Infrastructure/TenantManager.cs +++ b/Oqtane.Server/Infrastructure/TenantManager.cs @@ -1,9 +1,9 @@ using System; -using System.IO; using System.Linq; using Microsoft.AspNetCore.Http; using Oqtane.Models; using Oqtane.Repository; +using Oqtane.Shared; namespace Oqtane.Infrastructure { diff --git a/Oqtane.Server/Modules/HtmlText/Repository/HtmlTextRepository.cs b/Oqtane.Server/Modules/HtmlText/Repository/HtmlTextRepository.cs index 51a0055d..2ed63f69 100644 --- a/Oqtane.Server/Modules/HtmlText/Repository/HtmlTextRepository.cs +++ b/Oqtane.Server/Modules/HtmlText/Repository/HtmlTextRepository.cs @@ -2,10 +2,10 @@ using System.Linq; using Oqtane.Documentation; using System.Collections.Generic; using Microsoft.Extensions.Caching.Memory; -using Oqtane.Infrastructure; using System; using Microsoft.EntityFrameworkCore; using System.Threading.Tasks; +using Oqtane.Shared; namespace Oqtane.Modules.HtmlText.Repository { diff --git a/Oqtane.Server/Repository/PermissionRepository.cs b/Oqtane.Server/Repository/PermissionRepository.cs index 7d82ded9..1a3b0395 100644 --- a/Oqtane.Server/Repository/PermissionRepository.cs +++ b/Oqtane.Server/Repository/PermissionRepository.cs @@ -4,7 +4,7 @@ using System.Linq; using Microsoft.EntityFrameworkCore; using Oqtane.Models; using Microsoft.Extensions.Caching.Memory; -using Oqtane.Infrastructure; +using Oqtane.Shared; namespace Oqtane.Repository {