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:
@@ -25,7 +25,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
|
||||
private readonly Dictionary<string, int> _codeIdMap = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
|
||||
private readonly Dictionary<int, string> _idCodeMap = new Dictionary<int, string>();
|
||||
|
||||
public LanguageRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger, IOptionsSnapshot<GlobalSettings> globalSettings)
|
||||
public LanguageRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger, IOptions<GlobalSettings> globalSettings)
|
||||
: base(scopeAccessor, cache, logger)
|
||||
{
|
||||
_globalSettings = globalSettings.Value;
|
||||
|
||||
Reference in New Issue
Block a user