using System.Runtime.Serialization;
namespace Umbraco.Cms.Core.Models;
///
/// Represents a cache instruction.
///
[Serializable]
[DataContract(IsReference = true)]
public class CacheInstruction
{
///
/// Initializes a new instance of the class.
///
public CacheInstruction(int id, DateTime utcStamp, string instructions, string originIdentity, int instructionCount)
{
Id = id;
UtcStamp = utcStamp;
Instructions = instructions;
OriginIdentity = originIdentity;
InstructionCount = instructionCount;
}
///
/// Cache instruction Id.
///
public int Id { get; }
///
/// Cache instruction created date.
///
public DateTime UtcStamp { get; }
///
/// Serialized instructions.
///
public string Instructions { get; }
///
/// Identity of server originating the instruction.
///
public string OriginIdentity { get; }
///
/// Count of instructions.
///
public int InstructionCount { get; }
}