New IPublishedSnapshotStatus, reduces IPublishedSnapshotService

This commit is contained in:
Shannon
2020-12-21 17:41:12 +11:00
parent e8f5aa8ebc
commit c761fa0506
10 changed files with 146 additions and 117 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Umbraco.Web.Cache;
namespace Umbraco.Web.PublishedCache
@@ -102,12 +103,9 @@ namespace Umbraco.Web.PublishedCache
/// <param name="payloads">The changes.</param>
void Notify(DomainCacheRefresher.JsonPayload[] payloads);
// TODO: This is weird, why is this is this a thing? Maybe IPublishedSnapshotStatus?
string GetStatus();
// TODO: This is weird, why is this is this a thing? Maybe IPublishedSnapshotStatus?
string StatusUrl { get; }
void Collect();
/// <summary>
/// Cleans up unused snapshots
/// </summary>
Task CollectAsync();
}
}

View File

@@ -0,0 +1,18 @@
namespace Umbraco.Web.PublishedCache
{
/// <summary>
/// Returns the currents status for nucache
/// </summary>
public interface IPublishedSnapshotStatus
{
/// <summary>
/// Gets the status report as a string
/// </summary>
string GetStatus();
/// <summary>
/// Gets the URL used to retreive the status
/// </summary>
string StatusUrl { get; }
}
}