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:
@@ -31,7 +31,7 @@ namespace Umbraco.Web.BackOffice.Controllers
|
||||
IUmbracoVersion umbracoVersion,
|
||||
ICookieManager cookieManager,
|
||||
IWebSecurity webSecurity,
|
||||
IOptionsSnapshot<GlobalSettings> globalSettings)
|
||||
IOptions<GlobalSettings> globalSettings)
|
||||
{
|
||||
_upgradeService = upgradeService ?? throw new ArgumentNullException(nameof(upgradeService));
|
||||
_umbracoVersion = umbracoVersion ?? throw new ArgumentNullException(nameof(umbracoVersion));
|
||||
@@ -81,7 +81,7 @@ namespace Umbraco.Web.BackOffice.Controllers
|
||||
{
|
||||
private readonly GlobalSettings _globalSettings;
|
||||
|
||||
public UpdateCheckResponseFilter(IOptionsSnapshot<GlobalSettings> globalSettings)
|
||||
public UpdateCheckResponseFilter(IOptions<GlobalSettings> globalSettings)
|
||||
{
|
||||
_globalSettings = globalSettings.Value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user