Splits profiler so it doesn't have to take a dependency since we don't want to pre-resolve. Adds enrichers to the container.

This commit is contained in:
Shannon
2020-04-22 15:23:51 +10:00
parent 2ef8f26b28
commit 18b285f088
19 changed files with 140 additions and 88 deletions

View File

@@ -7,6 +7,9 @@ using Umbraco.Core.Runtime;
using Umbraco.Core.Security;
using Umbraco.Web.Common.AspNetCore;
using Umbraco.Web.Common.Lifetime;
using Umbraco.Core.Diagnostics;
using Umbraco.Web.Common.Runtime.Profiler;
using Umbraco.Core.Logging;
namespace Umbraco.Web.Common.Runtime
{
@@ -42,6 +45,10 @@ namespace Umbraco.Web.Common.Runtime
composition.RegisterUnique<ICookieManager, AspNetCoreCookieManager>();
composition.RegisterMultipleUnique<ISessionIdResolver, ISessionManager, AspNetCoreSessionManager>();
composition.RegisterUnique<IMarchal, AspNetCoreMarchal>();
composition.RegisterUnique<IProfilerHtml, WebProfilerHtml>();
}
}
}