Fixes for the IPublishedContent Linq/Culture PR
This commit is contained in:
@@ -154,9 +154,10 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
|
||||
|
||||
public override string Name => _name;
|
||||
|
||||
public override PublishedCultureInfo GetCulture(string culture = null) => throw new NotSupportedException();
|
||||
public override PublishedCultureInfo GetCulture(string culture = null) => null;
|
||||
|
||||
public override IReadOnlyDictionary<string, PublishedCultureInfo> Cultures => throw new NotSupportedException();
|
||||
private static readonly Lazy<Dictionary<string, PublishedCultureInfo>> NoCultures = new Lazy<Dictionary<string, PublishedCultureInfo>>(() => new Dictionary<string, PublishedCultureInfo>());
|
||||
public override IReadOnlyDictionary<string, PublishedCultureInfo> Cultures => NoCultures.Value;
|
||||
|
||||
public override string UrlSegment => _urlName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user