further refactor base/rest service into Umbraco.Web

This commit is contained in:
Stephan
2012-09-20 14:37:23 -02:00
parent 777c7dd683
commit ea8ff709c2
16 changed files with 712 additions and 236 deletions

View File

@@ -6,8 +6,6 @@ using Umbraco.Core;
using Umbraco.Web.Routing;
using umbraco;
using umbraco.interfaces;
using umbraco.presentation.umbracobase;
namespace Umbraco.Web
{
@@ -27,13 +25,23 @@ namespace Umbraco.Web
}
/// <summary>
/// Returns all classes attributed with RestExtension attribute
/// Returns all classes attributed with legacy RestExtension attribute
/// </summary>
/// <param name="resolver"></param>
/// <returns></returns>
internal static IEnumerable<Type> ResolveLegacyRestExtensions(this PluginManager resolver)
{
return resolver.ResolveAttributedTypes<global::umbraco.presentation.umbracobase.RestExtension>();
}
/// <summary>
/// Returns all classes attributed with RestExtensionAttribute attribute
/// </summary>
/// <param name="resolver"></param>
/// <returns></returns>
internal static IEnumerable<Type> ResolveRestExtensions(this PluginManager resolver)
{
return resolver.ResolveAttributedTypes<RestExtension>();
return resolver.ResolveAttributedTypes<Umbraco.Web.BaseRest.RestExtensionAttribute>();
}
/// <summary>