Updated classes to use IOptionsMonitor or IOptionsSnapshot

This commit is contained in:
Nikolaj Geisle
2021-09-24 09:49:53 +02:00
parent 8c26a86a55
commit 8ce66277ce
42 changed files with 128 additions and 99 deletions

View File

@@ -59,7 +59,7 @@ namespace Umbraco.Cms.Web.Common.ModelsBuilder
Lazy<UmbracoServices> umbracoServices,
IProfilingLogger profilingLogger,
ILogger<InMemoryModelFactory> logger,
IOptions<ModelsBuilderSettings> config,
IOptionsMonitor<ModelsBuilderSettings> config,
IHostingEnvironment hostingEnvironment,
IApplicationShutdownRegistry hostingLifetime,
IPublishedValueFallback publishedValueFallback,
@@ -68,7 +68,7 @@ namespace Umbraco.Cms.Web.Common.ModelsBuilder
_umbracoServices = umbracoServices;
_profilingLogger = profilingLogger;
_logger = logger;
_config = config.Value;
_config = config.CurrentValue;
_hostingEnvironment = hostingEnvironment;
_hostingLifetime = hostingLifetime;
_publishedValueFallback = publishedValueFallback;