Fixes for the IPublishedContent Linq/Culture PR

This commit is contained in:
Stephan
2019-01-17 18:03:07 +01:00
parent 640b21d802
commit e42995cf10
6 changed files with 140 additions and 133 deletions

View File

@@ -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;