2022-01-26 11:32:16 -05:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using SharedLibraryCore.Helpers;
|
2020-05-22 21:29:41 -04:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// defines the capabilities of a resource queryier
|
2020-05-22 21:29:41 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="QueryType">Type of query</typeparam>
|
|
|
|
|
/// <typeparam name="ResultType">Type of result</typeparam>
|
|
|
|
|
public interface IResourceQueryHelper<QueryType, ResultType>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// queries a resource and returns the result of the query
|
2020-05-22 21:29:41 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="query">query params</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<ResourceQueryHelperResult<ResultType>> QueryResource(QueryType query);
|
|
|
|
|
}
|
2022-01-26 11:32:16 -05:00
|
|
|
|
}
|