Fixes: #U4-1546 - Moves IApplicationEventHandler to Umbraco.Core and creates UmbracoApplicationBase object in the Core. Changes

signatures of IApplicationEventHandler methods to accept an UmbracoApplicationBase object instead of UmbracoApplication. This allows
us to execute all IApplicationEventHandler's outside of the web context. Added unit test to support booting the application outside of the
web context.
This commit is contained in:
Shannon Deminick
2013-01-29 09:45:12 +06:00
parent a2b5b13432
commit 65980e8c76
15 changed files with 330 additions and 187 deletions

View File

@@ -396,6 +396,15 @@ namespace Umbraco.Core
private readonly HashSet<TypeList> _types = new HashSet<TypeList>();
private IEnumerable<Assembly> _assemblies;
/// <summary>
/// Returns all available IApplicationStartupHandler objects
/// </summary>
/// <returns></returns>
internal IEnumerable<Type> ResolveApplicationStartupHandlers()
{
return ResolveTypes<IApplicationStartupHandler>();
}
/// <summary>
/// Returns all classes attributed with XsltExtensionAttribute attribute
/// </summary>