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:
@@ -14,7 +14,7 @@ namespace Umbraco.ModelsBuilder.Embedded.Building
|
||||
private readonly OutOfDateModelsStatus _outOfDateModels;
|
||||
private readonly IIOHelper _ioHelper;
|
||||
|
||||
public ModelsGenerator(UmbracoServices umbracoService, IOptionsSnapshot<ModelsBuilderConfig> config, OutOfDateModelsStatus outOfDateModels, IIOHelper ioHelper)
|
||||
public ModelsGenerator(UmbracoServices umbracoService, IOptions<ModelsBuilderConfig> config, OutOfDateModelsStatus outOfDateModels, IIOHelper ioHelper)
|
||||
{
|
||||
_umbracoService = umbracoService;
|
||||
_config = config.Value;
|
||||
|
||||
Reference in New Issue
Block a user