Updated UmbracoRequestLocalizationOptions.cs to not use IOptionsSnapshot

Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
This commit is contained in:
Nikolaj Geisle
2021-10-04 10:41:35 +02:00
parent 20b95de2d1
commit c42356ef65

View File

@@ -16,7 +16,7 @@ namespace Umbraco.Cms.Web.Common.Localization
/// <summary>
/// Initializes a new instance of the <see cref="UmbracoRequestLocalizationOptions"/> class.
/// </summary>
public UmbracoRequestLocalizationOptions(IOptionsSnapshot<GlobalSettings> globalSettings)
public UmbracoRequestLocalizationOptions(IOptions<GlobalSettings> globalSettings)
{
_globalSettings = globalSettings.Value;
}