Moved PublishedCache from Umbraco.Web into .Net standard project.

Returned to compiling state with a number of things to check and some temporarily commented out functionality.
This commit is contained in:
Andy Butland
2020-01-30 20:05:16 +01:00
parent f1daa125e6
commit 171fce2ecb
62 changed files with 148 additions and 141 deletions

View File

@@ -0,0 +1,28 @@
using System;
using Newtonsoft.Json;
namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
internal class PropertyData
{
private string _culture;
private string _segment;
[JsonProperty("culture")]
public string Culture
{
get => _culture;
set => _culture = value ?? throw new ArgumentNullException(nameof(value)); // TODO: or fallback to string.Empty? CANNOT be null
}
[JsonProperty("seg")]
public string Segment
{
get => _segment;
set => _segment = value ?? throw new ArgumentNullException(nameof(value)); // TODO: or fallback to string.Empty? CANNOT be null
}
[JsonProperty("val")]
public object Value { get; set; }
}
}