Adds KeyValueService Find and tests
This commit is contained in:
@@ -5,6 +5,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Cms.Core.Cache;
|
||||
using Umbraco.Cms.Core.Composing;
|
||||
using Umbraco.Cms.Core.Packaging;
|
||||
using Umbraco.Cms.Core.PropertyEditors;
|
||||
|
||||
namespace Umbraco.Extensions
|
||||
@@ -14,17 +15,18 @@ namespace Umbraco.Extensions
|
||||
/// <summary>
|
||||
/// Gets all classes implementing <see cref="IDataEditor"/>.
|
||||
/// </summary>
|
||||
public static IEnumerable<Type> GetDataEditors(this TypeLoader mgr)
|
||||
{
|
||||
return mgr.GetTypes<IDataEditor>();
|
||||
}
|
||||
public static IEnumerable<Type> GetDataEditors(this TypeLoader mgr) => mgr.GetTypes<IDataEditor>();
|
||||
|
||||
/// <summary>
|
||||
/// Gets all classes implementing ICacheRefresher.
|
||||
/// </summary>
|
||||
public static IEnumerable<Type> GetCacheRefreshers(this TypeLoader mgr)
|
||||
{
|
||||
return mgr.GetTypes<ICacheRefresher>();
|
||||
}
|
||||
public static IEnumerable<Type> GetCacheRefreshers(this TypeLoader mgr) => mgr.GetTypes<ICacheRefresher>();
|
||||
|
||||
/// <summary>
|
||||
/// Gest all classes implementing <see cref="PackageMigrationPlan"/>
|
||||
/// </summary>
|
||||
/// <param name="mgr"></param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable<Type> GetPackageMigrationPlans(this TypeLoader mgr) => mgr.GetTypes<PackageMigrationPlan>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user