Skip to content

Commit

Permalink
Merge pull request #4019 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix #4017 - SiteState being lost in server rendered scenarios
  • Loading branch information
sbwalker authored Mar 19, 2024
2 parents 4ed501f + 3eb9de5 commit 52121b9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 15 deletions.
3 changes: 0 additions & 3 deletions Oqtane.Server/Extensions/OqtaneServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ internal static IServiceCollection AddOqtaneServerScopedServices(this IServiceCo
services.AddScoped<IVisitorService, VisitorService>();
services.AddScoped<ISyncService, SyncService>();

// alternative used within infrastructure classes
services.AddScoped<Oqtane.Infrastructure.SiteState>();

return services;
}

Expand Down
9 changes: 0 additions & 9 deletions Oqtane.Server/Infrastructure/SiteState.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Oqtane.Server/Infrastructure/TenantManager.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
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
{
Expand Down
2 changes: 1 addition & 1 deletion Oqtane.Server/Repository/PermissionRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.EntityFrameworkCore;
using Oqtane.Models;
using Microsoft.Extensions.Caching.Memory;
using Oqtane.Infrastructure;
using Oqtane.Shared;

namespace Oqtane.Repository
{
Expand Down

0 comments on commit 52121b9

Please sign in to comment.