Resvolution - CacheRefresherResolver

This commit is contained in:
Stephan
2016-08-13 16:02:35 +02:00
parent ac271dfc3f
commit caf3c4280a
12 changed files with 57 additions and 63 deletions

View File

@@ -10,6 +10,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NPoco;
using Umbraco.Core.Cache;
using Umbraco.Core.DependencyInjection;
using Umbraco.Core.IO;
using Umbraco.Core.Logging;
using Umbraco.Core.Models.Rdbms;
@@ -440,7 +441,7 @@ namespace Umbraco.Core.Sync
private static ICacheRefresher GetRefresher(Guid id)
{
var refresher = CacheRefreshersResolver.Current.GetById(id);
var refresher = Current.CacheRefreshers[id];
if (refresher == null)
throw new InvalidOperationException("Cache refresher with ID \"" + id + "\" does not exist.");
return refresher;