Broke out SQL calls in DatabaseServerMessenger and BatchedDatabaseServerMessenger into a service and repository layer.
This commit is contained in:
51
src/Umbraco.Core/Models/CacheInstruction.cs
Normal file
51
src/Umbraco.Core/Models/CacheInstruction.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
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; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Cache instruction created date.
|
||||
/// </summary>
|
||||
public DateTime UtcStamp { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Serialized instructions.
|
||||
/// </summary>
|
||||
public string Instructions { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Identity of server originating the instruction.
|
||||
/// </summary>
|
||||
public string OriginIdentity { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Count of instructions.
|
||||
/// </summary>
|
||||
public int InstructionCount { get; private set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user