Files
Umbraco-CMS/src/Umbraco.Core/ObjectResolution/ApplicationEventsResolver.cs

48 lines
1.1 KiB
C#
Raw Normal View History

2012-08-14 12:03:34 +06:00
using System;
using System.Collections.Generic;
using System.Linq;
using umbraco.interfaces;
namespace Umbraco.Core.ObjectResolution
2012-08-14 12:03:34 +06:00
{
/// <summary>
/// A resolver to return all IApplicationEvents objects
/// </summary>
internal sealed class ApplicationEventsResolver : ManyObjectsResolverBase<ApplicationEventsResolver, IApplicationStartupHandler>
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="applicationEventHandlers"></param>
internal ApplicationEventsResolver(IEnumerable<Type> applicationEventHandlers)
: base(applicationEventHandlers)
{
}
/// <summary>
/// Gets the <see cref="IApplicationEventHandler"/> implementations.
2012-08-14 12:03:34 +06:00
/// </summary>
public IEnumerable<IApplicationEventHandler> ApplicationEventHandlers
2012-08-14 12:03:34 +06:00
{
get { return Values.OfType<IApplicationEventHandler>(); }
2012-08-14 12:03:34 +06:00
}
protected override bool SupportsClear
2012-08-14 12:03:34 +06:00
{
get { return false; }
}
2012-08-14 12:03:34 +06:00
protected override bool SupportsInsert
2012-08-14 12:03:34 +06:00
{
get { return false; }
2012-08-14 12:03:34 +06:00
}
protected override bool SupportsRemove
2012-08-14 12:03:34 +06:00
{
get { return false; }
2012-08-14 12:03:34 +06:00
}
}
}