Revert files that shouldn't change back in v11
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
using Umbraco.Cms.Core.Models.PublishedContent;
|
||||
using Umbraco.Cms.Core.Models.PublishedContent;
|
||||
using Umbraco.Cms.Core.PublishedCache;
|
||||
using Umbraco.Cms.Infrastructure.PublishedCache.DataSource;
|
||||
|
||||
namespace Umbraco.Cms.Infrastructure.PublishedCache;
|
||||
|
||||
public struct ContentNodeKit
|
||||
{
|
||||
[Obsolete("This will be changed to a property in future versions")]
|
||||
public ContentNode Node = null!;
|
||||
public struct ContentNodeKit
|
||||
{
|
||||
public ContentNode Node { get; } = null!;
|
||||
|
||||
[Obsolete("This will be changed to a property in future versions")]
|
||||
public int ContentTypeId;
|
||||
public int ContentTypeId { get; }
|
||||
|
||||
[Obsolete("This will be changed to a property in future versions")]
|
||||
public ContentData? DraftData;
|
||||
public ContentData? DraftData { get; }
|
||||
|
||||
[Obsolete("This will be changed to a property in future versions")]
|
||||
public ContentData? PublishedData;
|
||||
public ContentData? PublishedData { get; }
|
||||
|
||||
public ContentNodeKit(ContentNode node, int contentTypeId, ContentData? draftData, ContentData? publishedData)
|
||||
{
|
||||
|
||||
@@ -1,30 +1,11 @@
|
||||
namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource;
|
||||
namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource;
|
||||
|
||||
/// <summary>
|
||||
/// Represents everything that is specific to an edited or published content version
|
||||
/// Represents everything that is specific to an edited or published content version
|
||||
/// </summary>
|
||||
public class ContentData
|
||||
{
|
||||
// Scheduled for removal in V11
|
||||
[Obsolete("Use ctor with all params, as the pros should be immutable")]
|
||||
public ContentData()
|
||||
{
|
||||
Name = string.Empty;
|
||||
UrlSegment = string.Empty;
|
||||
Properties = null!;
|
||||
CultureInfos = null!;
|
||||
}
|
||||
|
||||
public ContentData(
|
||||
string? name,
|
||||
string? urlSegment,
|
||||
int versionId,
|
||||
DateTime versionDate,
|
||||
int writerId,
|
||||
int? templateId,
|
||||
bool published,
|
||||
IDictionary<string, PropertyData[]>? properties,
|
||||
IReadOnlyDictionary<string, CultureVariation>? cultureInfos)
|
||||
public ContentData(string? name, string? urlSegment, int versionId, DateTime versionDate, int writerId, int? templateId, bool published, IDictionary<string, PropertyData[]>? properties, IReadOnlyDictionary<string, CultureVariation>? cultureInfos)
|
||||
{
|
||||
Name = name ?? throw new ArgumentNullException(nameof(name));
|
||||
UrlSegment = urlSegment;
|
||||
@@ -37,69 +18,19 @@ public class ContentData
|
||||
CultureInfos = cultureInfos;
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get;
|
||||
[Obsolete("Do not change this, use ctor with params and have this object immutable.")]
|
||||
set;
|
||||
}
|
||||
public string Name { get; }
|
||||
public string? UrlSegment { get; }
|
||||
public int VersionId { get; }
|
||||
public DateTime VersionDate { get; }
|
||||
public int WriterId { get; }
|
||||
public int? TemplateId { get; }
|
||||
public bool Published { get; }
|
||||
|
||||
public string? UrlSegment
|
||||
{
|
||||
get;
|
||||
[Obsolete("Do not change this, use ctor with params and have this object immutable.")]
|
||||
set;
|
||||
}
|
||||
|
||||
public int VersionId
|
||||
{
|
||||
get;
|
||||
[Obsolete("Do not change this, use ctor with params and have this object immutable.")]
|
||||
set;
|
||||
}
|
||||
|
||||
public DateTime VersionDate
|
||||
{
|
||||
get;
|
||||
[Obsolete("Do not change this, use ctor with params and have this object immutable.")]
|
||||
set;
|
||||
}
|
||||
|
||||
public int WriterId
|
||||
{
|
||||
get;
|
||||
[Obsolete("Do not change this, use ctor with params and have this object immutable.")]
|
||||
set;
|
||||
}
|
||||
|
||||
public int? TemplateId
|
||||
{
|
||||
get;
|
||||
[Obsolete("Do not change this, use ctor with params and have this object immutable.")]
|
||||
set;
|
||||
}
|
||||
|
||||
public bool Published
|
||||
{
|
||||
get;
|
||||
[Obsolete("Do not change this, use ctor with params and have this object immutable.")]
|
||||
set;
|
||||
}
|
||||
|
||||
public IDictionary<string, PropertyData[]> Properties
|
||||
{
|
||||
get;
|
||||
[Obsolete("Do not change this, use ctor with params and have this object immutable.")]
|
||||
set;
|
||||
}
|
||||
public IDictionary<string, PropertyData[]> Properties { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The collection of language Id to name for the content item
|
||||
/// The collection of language Id to name for the content item
|
||||
/// </summary>
|
||||
public IReadOnlyDictionary<string, CultureVariation>? CultureInfos
|
||||
{
|
||||
get;
|
||||
[Obsolete("Do not change this, use ctor with params and have this object immutable.")]
|
||||
set;
|
||||
}
|
||||
public IReadOnlyDictionary<string, CultureVariation>? CultureInfos { get; }
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<RootNamespace>Umbraco.Cms.Infrastructure.PublishedCache</RootNamespace>
|
||||
<PackageId>Umbraco.Cms.PublishedCache.NuCache</PackageId>
|
||||
<Title>Umbraco CMS Published Cache</Title>
|
||||
|
||||
Reference in New Issue
Block a user