Files
Umbraco-CMS/src/umbraco.MacroEngines/PluginManagerExtensions.cs
shannon@ShandemVaio 646e96ab15 Changed PluginResolverType to PluginManager. Reinstated Resolution and ResolverBase<T> since
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.
2012-08-01 22:06:15 +06:00

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>();
}
}
}