Removed the server option to allow synchronous IO.

This commit is contained in:
Andy Butland
2020-08-28 12:56:40 +02:00
parent b1f6fb914f
commit bdfa1fb644

View File

@@ -50,17 +50,6 @@ namespace Umbraco.Extensions
//But as far as I can see, there are still precompiled views, even when this is activated, so maybe it is okay.
services.AddControllersWithViews().AddRazorRuntimeCompilation();
// If using Kestrel: https://stackoverflow.com/a/55196057
services.Configure<KestrelServerOptions>(options =>
{
options.AllowSynchronousIO = true;
});
services.Configure<IISServerOptions>(options =>
{
options.AllowSynchronousIO = true;
});
return services;
}