Merge branch 'temp8' into temp8-di2690

This commit is contained in:
Stephan
2019-01-02 15:42:57 +01:00
32 changed files with 1064 additions and 1142 deletions

View File

@@ -0,0 +1,24 @@
using Umbraco.Core;
using Umbraco.Core.Components;
using Umbraco.Core.Composing;
namespace Umbraco.Web.Cache
{
/// <summary>
/// Installs listeners on service events in order to refresh our caches.
/// </summary>
[RuntimeLevel(MinLevel = RuntimeLevel.Run)]
[RequiredByComponent(typeof(IUmbracoCoreComponent))] // runs before every other IUmbracoCoreComponent!
public class DistributedCacheBinderComponent : UmbracoComponentBase, IUmbracoCoreComponent
{
public override void Compose(Composition composition)
{
composition.RegisterUnique<IDistributedCacheBinder, DistributedCacheBinder>();
}
public void Initialize(IDistributedCacheBinder distributedCacheBinder)
{
distributedCacheBinder.BindEvents();
}
}
}