Moved files from backoffice into Common + Introduced AspNetCoreComponent to invoke the Umbraco Application Init event

This commit is contained in:
Bjarke Berg
2020-03-27 11:39:17 +01:00
parent fe88662f48
commit 681a25b861
26 changed files with 134 additions and 102 deletions

View File

@@ -8,7 +8,9 @@ using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Umbraco.Composing;
using Umbraco.Web.BackOffice.AspNetCore;
using Umbraco.Web.Common.AspNetCore;
using Umbraco.Web.Common.Extensions;
using Umbraco.Web.Website.AspNetCore;
@@ -52,6 +54,7 @@ namespace Umbraco.Web.UI.BackOffice
app.UseDeveloperExceptionPage();
}
app.UseUmbracoCore();
app.UseUmbracoWebsite();
app.UseUmbracoBackOffice();
@@ -59,7 +62,10 @@ namespace Umbraco.Web.UI.BackOffice
app.UseEndpoints(endpoints =>
{
endpoints.MapGet("/", async context => { await context.Response.WriteAsync("Hello World!"); });
endpoints.MapGet("/", async context =>
{
await context.Response.WriteAsync($"<html><body>Hello World!{Current.Profiler.Render()}</body></html>");
});
});
}
}