U4-8447 - prepare for NuCache (work-in-progress)

This commit is contained in:
Stephan
2016-05-26 17:12:04 +02:00
parent 8682940efb
commit 06574b8b40
197 changed files with 9380 additions and 9956 deletions

View File

@@ -103,33 +103,23 @@ namespace Umbraco.Tests.Cache.DistributedCache
internal class TestCacheRefresher : ICacheRefresher
{
public Guid UniqueIdentifier
{
get { return Guid.Parse("E0F452CB-DCB2-4E84-B5A5-4F01744C5C73"); }
}
public string Name
{
get { return "Test"; }
}
public static readonly Guid UniqueId = Guid.Parse("E0F452CB-DCB2-4E84-B5A5-4F01744C5C73");
public Guid RefresherUniqueId => UniqueId;
public string Name => "Test Cache Refresher";
public void RefreshAll()
{
}
{ }
public void Refresh(int id)
{
}
{ }
public void Remove(int id)
{
}
{ }
public void Refresh(Guid id)
{
}
{ }
}
internal class TestServerMessenger : IServerMessenger
@@ -142,7 +132,7 @@ namespace Umbraco.Tests.Cache.DistributedCache
public List<string> PayloadsRefreshed = new List<string>();
public int CountOfFullRefreshes = 0;
public void PerformRefresh(IEnumerable<IServerAddress> servers, ICacheRefresher refresher, object payload)
public void PerformRefresh<TPayload>(IEnumerable<IServerAddress> servers, ICacheRefresher refresher, TPayload[] payload)
{
// doing nothing
}