using System; using System.Collections.Generic; using Umbraco.Core.Media; using Umbraco.Web.Mvc; using Umbraco.Web.Trees; using Umbraco.Web.WebApi; using umbraco.cms.presentation.Trees; using Umbraco.Core.Composing; using Umbraco.Web._Legacy.Actions; namespace Umbraco.Web { /// /// Extension methods for the PluginTypemgr /// public static class TypeLoaderExtensions { /// /// Returns all available IAction in application /// /// internal static IEnumerable GetActions(this TypeLoader mgr) { return mgr.GetTypes(); } /// /// Returns all available TreeApiController's in application that are attribute with TreeAttribute /// /// /// internal static IEnumerable GetAttributedTreeControllers(this TypeLoader mgr) { return mgr.GetTypesWithAttribute(); } internal static IEnumerable GetSurfaceControllers(this TypeLoader mgr) { return mgr.GetTypes(); } internal static IEnumerable GetUmbracoApiControllers(this TypeLoader mgr) { return mgr.GetTypes(); } /// /// Returns all available ITrees in application /// /// /// internal static IEnumerable GetTrees(this TypeLoader mgr) { return mgr.GetTypes(); } /// /// Returns all available ISearchableTrees in application /// /// /// internal static IEnumerable GetSearchableTrees(this TypeLoader mgr) { return mgr.GetTypes(); } } }