Moves more services and registrations "up", removes AspNetCoreComposer logic and moves to AddWebComponents

This commit is contained in:
Shannon
2020-12-24 14:29:26 +11:00
parent 1328ca3cee
commit e785ac28a3
47 changed files with 402 additions and 429 deletions

View File

@@ -164,9 +164,15 @@ namespace Umbraco.Web.Cache
#endregion
// helper method to get an ICacheRefresher by its unique identifier
private ICacheRefresher GetRefresherById(Guid refresherGuid)
private ICacheRefresher GetRefresherById(Guid refresherGuid)
{
return _cacheRefreshers[refresherGuid];
ICacheRefresher refresher = _cacheRefreshers[refresherGuid];
if (refresher == null)
{
throw new InvalidOperationException($"No cache refresher found with id {refresherGuid}");
}
return refresher;
}
}
}