Skip to content

Commit

Permalink
Updated startup configuration to use scoped instead of transient. Als…
Browse files Browse the repository at this point in the history
…o updated typo in ISerializationManager registration
  • Loading branch information
SkyeHoefling committed Oct 7, 2020
1 parent 964621e commit e185a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DNN Platform/Library/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information

namespace DotNetNuke
{
using DotNetNuke.Abstractions;
@@ -11,6 +10,7 @@ namespace DotNetNuke
using DotNetNuke.Common;
using DotNetNuke.DependencyInjection;
using DotNetNuke.Entities.Controllers;
using DotNetNuke.Entities.Modules.Settings;
using DotNetNuke.Entities.Portals;
using DotNetNuke.UI.Modules;
using DotNetNuke.UI.Modules.Html5;
@@ -31,7 +31,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddTransient(x => PortalController.Instance);
services.AddScoped<IHostSettingsService, HostController>();
services.AddScoped<INavigationManager, NavigationManager>();
services.AddTransient<ISerializationManager, ISerializationManager>();
services.AddScoped<ISerializationManager, SerializationManager>();

services.AddScoped<IApplicationInfo, Application.Application>();
services.AddScoped<IApplicationStatusInfo, ApplicationStatusInfo>();

0 comments on commit e185a86

Please sign in to comment.