2021-07-12 15:28:46 -06:00
|
|
|
using System;
|
2016-08-13 16:02:35 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2021-02-18 11:06:02 +01:00
|
|
|
using Umbraco.Cms.Core.Composing;
|
2016-08-13 16:02:35 +02:00
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
namespace Umbraco.Cms.Core.Cache
|
2016-08-13 16:02:35 +02:00
|
|
|
{
|
|
|
|
|
public class CacheRefresherCollection : BuilderCollectionBase<ICacheRefresher>
|
|
|
|
|
{
|
2021-07-12 15:28:46 -06:00
|
|
|
public CacheRefresherCollection(Func<IEnumerable<ICacheRefresher>> items) : base(items)
|
|
|
|
|
{
|
|
|
|
|
}
|
2016-08-13 16:02:35 +02:00
|
|
|
|
2021-12-16 13:44:20 +01:00
|
|
|
public ICacheRefresher? this[Guid id]
|
2021-07-12 15:28:46 -06:00
|
|
|
=> this.FirstOrDefault(x => x.RefresherUniqueId == id);
|
2016-08-13 16:02:35 +02:00
|
|
|
}
|
|
|
|
|
}
|