Files
Umbraco-CMS/src/Umbraco.Core/Models/CacheInstruction.cs
2021-03-17 09:03:49 +01:00

52 lines
1.3 KiB
C#

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