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:
@@ -17,7 +17,7 @@ namespace Umbraco.ModelsBuilder.Embedded.Compose
|
||||
{
|
||||
private readonly ModelsBuilderConfig _config;
|
||||
|
||||
public ModelsBuilderComposer(IOptionsSnapshot<ModelsBuilderConfig> config)
|
||||
public ModelsBuilderComposer(IOptions<ModelsBuilderConfig> config)
|
||||
{
|
||||
_config = config.Value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user