using System; using System.Collections.Generic; using Umbraco.Core; using umbraco.BusinessLogic.Actions; using umbraco.businesslogic; using umbraco.cms.businesslogic.macro; using umbraco.cms.businesslogic.media; using umbraco.interfaces; namespace umbraco.cms { /// /// Extension methods for the PluginTypeResolver /// public static class PluginManagerExtensions { /// /// Returns all available IActions in application /// /// /// internal static IEnumerable ResolveActions(this PluginManager resolver) { return resolver.ResolveTypes(); } /// /// Returns all available IDataType in application /// /// /// internal static IEnumerable ResolveMacroEngines(this PluginManager resolver) { return resolver.ResolveTypes(); } /// /// Returns all available IMediaFactory in application /// /// /// [Obsolete("We don't use IMediaFactory anymore, we need to remove this when we remove the MediaFactory instance that uses this method")] internal static IEnumerable ResolveMediaFactories(this PluginManager resolver) { return resolver.ResolveTypes(); } } }