Move to Minimal Hosting Model in a backwards compatible way (#14656)
* Use minimal hosting model * Make CoreRuntime backward compatible to the old hosting model * Remove unneccessary methods from interface again * Pushed the timeout for E2E test to 120 minutes instead of 60 * Updated the preview version from 6 to 7 * Explicitly call BootUmbracoAsync * Add CreateUmbracoBuilder extension method * Do not add IRuntime as hosted service when using WebApplication/WebApplicationBuilder * Set StaticServiceProvider.Instance before booting * Ensure Umbraco is booted and StaticServiceProvider.Instance is set before configuring middleware * Do not enable static web assets on production environments * Removed root namespace from viewImports --------- Co-authored-by: Andreas Zerbst <andr317c@live.dk> Co-authored-by: Ronald Barendse <ronald@barend.se>
This commit is contained in:
@@ -142,8 +142,6 @@ public static partial class UmbracoBuilderExtensions
|
||||
sp,
|
||||
sp.GetRequiredService<IApplicationDiscriminator>()));
|
||||
|
||||
builder.Services.AddHostedService(factory => factory.GetRequiredService<IRuntime>());
|
||||
|
||||
builder.Services.AddSingleton<DatabaseSchemaCreatorFactory>();
|
||||
builder.Services.TryAddEnumerable(ServiceDescriptor
|
||||
.Singleton<IDatabaseProviderMetadata, CustomConnectionStringDatabaseProviderMetadata>());
|
||||
|
||||
Reference in New Issue
Block a user