this gives us more control over all Resolvers and streamlines them. Created IBootManager, CoreBootManager and WebBootManager to handle the application initialization including the creation of Resolvers. This means that if people are using the dlls outside of the web app, they can run the boot strappers to initialize everything.
26 lines
639 B
C#
26 lines
639 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Umbraco.Core;
|
|
using umbraco.interfaces;
|
|
|
|
namespace umbraco.MacroEngines
|
|
{
|
|
/// <summary>
|
|
/// Extension methods for the PluginTypeResolver
|
|
/// </summary>
|
|
public static class PluginManagerExtensions
|
|
{
|
|
|
|
/// <summary>
|
|
/// Returns all available IMacroGuiRendering in application
|
|
/// </summary>
|
|
/// <param name="resolver"></param>
|
|
/// <returns></returns>
|
|
internal static IEnumerable<Type> ResolveRazorDataTypeModels(this PluginManager resolver)
|
|
{
|
|
return resolver.ResolveTypesWithAttribute<IRazorDataTypeModel, RazorDataTypeModel>();
|
|
}
|
|
|
|
|
|
}
|
|
} |