using System;
using System.Collections.Generic;
using System.Linq;
using Umbraco.Core.ObjectResolution;
using umbraco.interfaces;
namespace Umbraco.Web
{
///
/// 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(); }
}
public override void Clear()
{
throw new NotSupportedException("This class does not support this method");
}
public override void AddType(Type value)
{
throw new NotSupportedException("This class does not support this method");
}
public override void InsertType(int index, Type value)
{
throw new NotSupportedException("This class does not support this method");
}
public override void RemoveType(Type value)
{
throw new NotSupportedException("This class does not support this method");
}
}
}