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;
|
||||
|
||||
|
||||
@@ -136,9 +136,10 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
|
||||
}
|
||||
}
|
||||
|
||||
public override PublishedCultureInfo GetCulture(string culture = null) => throw new NotSupportedException();
|
||||
public override PublishedCultureInfo GetCulture(string culture = null) => null;
|
||||
|
||||
public override IReadOnlyDictionary<string, PublishedCultureInfo> Cultures => new Dictionary<string, PublishedCultureInfo>();
|
||||
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 WriterName
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user