2019-02-14 09:15:47 +01:00
|
|
|
|
using Umbraco.Core.Composing;
|
2019-01-02 15:24:05 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Cache
|
|
|
|
|
|
{
|
2019-01-03 21:00:28 +01:00
|
|
|
|
public class DistributedCacheBinderComponent : IComponent
|
2019-01-02 15:24:05 +01:00
|
|
|
|
{
|
2019-01-07 09:30:47 +01:00
|
|
|
|
private readonly IDistributedCacheBinder _binder;
|
|
|
|
|
|
|
2019-01-03 21:00:28 +01:00
|
|
|
|
public DistributedCacheBinderComponent(IDistributedCacheBinder distributedCacheBinder)
|
2019-01-02 15:24:05 +01:00
|
|
|
|
{
|
2019-01-07 09:30:47 +01:00
|
|
|
|
_binder = distributedCacheBinder;
|
2019-01-02 15:24:05 +01:00
|
|
|
|
}
|
2019-01-07 09:30:47 +01:00
|
|
|
|
|
|
|
|
|
|
public void Initialize()
|
|
|
|
|
|
{
|
|
|
|
|
|
_binder.BindEvents();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void Terminate()
|
|
|
|
|
|
{ }
|
2019-01-02 15:24:05 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|