Merge pull request #11952 from mattbrailsford/patch-7
Don't hold static UmbracoContext reference
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Umbraco.Extensions
|
||||
public static class FriendlyUrlHelperExtensions
|
||||
{
|
||||
|
||||
private static IUmbracoContext UmbracoContext { get; } =
|
||||
private static IUmbracoContext UmbracoContext =>
|
||||
StaticServiceProvider.Instance.GetRequiredService<IUmbracoContextAccessor>().GetRequiredUmbracoContext();
|
||||
|
||||
private static IDataProtectionProvider DataProtectionProvider { get; } =
|
||||
|
||||
Reference in New Issue
Block a user