📷 A modern, cross-platform, 2D Graphics library for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

53 lines
1.7 KiB

// -----------------------------------------------------------------------
// <copyright file="CachedImage.cs" company="James South">
// Copyright (c) James South.
// Dual licensed under the MIT or GPL Version 2 licenses.
// </copyright>
// -----------------------------------------------------------------------
namespace ImageProcessor.Web.Caching
{
#region Using
using System;
#endregion
/// <summary>
/// Describes a cached image
/// </summary>
internal sealed class CachedImage
{
/// <summary>
/// Initializes a new instance of the <see cref="CachedImage"/> class.
/// </summary>
/// <param name="path">
/// The value of the cached item.
/// </param>
/// <param name="lastWriteTimeUtc">
/// The last write time of the cached item.
/// </param>
/// <param name="expiresTimeUtc">
/// The expires time.
/// </param>
public CachedImage(string path, DateTime lastWriteTimeUtc, DateTime expiresTimeUtc)
{
this.Path = path;
this.LastWriteTimeUtc = lastWriteTimeUtc;
this.ExpiresUtc = expiresTimeUtc;
}
/// <summary>
/// Gets or sets the value of the cached image
/// </summary>
public string Path { get; set; }
/// <summary>
/// Gets or sets the last write time of the cached image
/// </summary>
public DateTime LastWriteTimeUtc { get; set; }
/// <summary>
/// Gets or sets when the cached image should expire from the cache.
/// </summary>
public DateTime ExpiresUtc { get; set; }
}
}