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:
@@ -23,7 +23,7 @@ namespace Umbraco.Web.BackOffice.Routing
|
||||
private readonly string _umbracoPathSegment;
|
||||
|
||||
public BackOfficeAreaRoutes(
|
||||
IOptionsSnapshot<GlobalSettings> globalSettings,
|
||||
IOptions<GlobalSettings> globalSettings,
|
||||
IHostingEnvironment hostingEnvironment,
|
||||
IRuntimeState runtimeState,
|
||||
UmbracoApiControllerTypeCollection apiControllers)
|
||||
|
||||
Reference in New Issue
Block a user