Adds KeyValueService Find and tests

This commit is contained in:
Shannon
2021-06-08 10:58:17 -06:00
parent a46ac7c98c
commit 77017f25b3
10 changed files with 105 additions and 23 deletions

View File

@@ -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>();
}
}