New IPublishedSnapshotStatus, reduces IPublishedSnapshotService
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
18
src/Umbraco.Core/PublishedCache/IPublishedSnapshotStatus.cs
Normal file
18
src/Umbraco.Core/PublishedCache/IPublishedSnapshotStatus.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user