Files
Umbraco-CMS/src/Umbraco.Infrastructure/Cache/DistributedCacheBinderComposer.cs
Bjarke Berg 43b33f9e6b Move features
- Introduced IUmbracoFeature
Move Install
Move Tree Items
 - Introduced IMenuItemCollectionFactory - to insure injection of ActionCollection
2020-02-17 14:58:34 +01:00

21 lines
689 B
C#

using Umbraco.Core;
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)]
[ComposeBefore(typeof(ICoreComposer))] // runs before every other IUmbracoCoreComponent!
public sealed class DistributedCacheBinderComposer : ComponentComposer<DistributedCacheBinderComponent>, ICoreComposer
{
public override void Compose(Composition composition)
{
base.Compose(composition);
composition.RegisterUnique<IDistributedCacheBinder, DistributedCacheBinder>();
}
}
}