Added configuration validation for models builder and hosting settings.

Renamed models builder config class suffix to match others.
This commit is contained in:
Andy Butland
2020-09-18 12:53:10 +02:00
parent eb62789b68
commit b9e67dde55
31 changed files with 171 additions and 59 deletions

View File

@@ -11,11 +11,11 @@ namespace Umbraco.ModelsBuilder.Embedded.Building
public class ModelsGenerator
{
private readonly UmbracoServices _umbracoService;
private readonly ModelsBuilderConfig _config;
private readonly ModelsBuilderSettings _config;
private readonly OutOfDateModelsStatus _outOfDateModels;
private readonly IHostingEnvironment _hostingEnvironment;
public ModelsGenerator(UmbracoServices umbracoService, IOptions<ModelsBuilderConfig> config, OutOfDateModelsStatus outOfDateModels, IHostingEnvironment hostingEnvironment)
public ModelsGenerator(UmbracoServices umbracoService, IOptions<ModelsBuilderSettings> config, OutOfDateModelsStatus outOfDateModels, IHostingEnvironment hostingEnvironment)
{
_umbracoService = umbracoService;
_config = config.Value;