Converted to IOptions over IOptionsSnapshot due to the latter only working in scoped services.
Further amends to return to booting application.
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Umbraco.Web.Common.AspNetCore
|
||||
|
||||
private string _localTempPath;
|
||||
|
||||
public AspNetCoreHostingEnvironment(IOptionsSnapshot<HostingSettings> hostingSettings, IWebHostEnvironment webHostEnvironment)
|
||||
public AspNetCoreHostingEnvironment(IOptions<HostingSettings> hostingSettings, IWebHostEnvironment webHostEnvironment)
|
||||
: this(hostingSettings.Value, webHostEnvironment)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user