2012-07-27 00:40:00 +06:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using Umbraco.Core;
|
|
|
|
|
using Umbraco.Web.Routing;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Extension methods for the PluginTypeResolver
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class PluginTypeResolverExtensions
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2012-07-27 01:01:34 +06:00
|
|
|
/// Returns all IDocumentLookup types
|
2012-07-27 00:40:00 +06:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="resolver"></param>
|
|
|
|
|
/// <returns></returns>
|
2012-07-27 01:01:34 +06:00
|
|
|
internal static IEnumerable<Type> ResolveLookups(this PluginTypeResolver resolver)
|
2012-07-27 00:40:00 +06:00
|
|
|
{
|
2012-07-27 01:01:34 +06:00
|
|
|
return resolver.ResolveTypes<IDocumentLookup>();
|
2012-07-27 00:40:00 +06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|