using System; using System.Collections.Generic; using System.Linq; using umbraco.interfaces; namespace Umbraco.Core.ObjectResolution { /// /// A resolver to return all IApplicationEvents objects /// internal sealed class ApplicationEventsResolver : ManyObjectsResolverBase { /// /// Constructor /// /// internal ApplicationEventsResolver(IEnumerable applicationEventHandlers) : base(applicationEventHandlers) { } /// /// Gets the implementations. /// public IEnumerable ApplicationEventHandlers { get { return Values.OfType(); } } protected override bool SupportsClear { get { return false; } } protected override bool SupportsInsert { get { return false; } } protected override bool SupportsRemove { get { return false; } } } }