IW4M-Admin/SharedLibraryCore/Interfaces/IResourceQueryHelper.cs

20 lines
694 B
C#
Raw Normal View History

2022-01-26 11:32:16 -05:00
using System.Threading.Tasks;
using SharedLibraryCore.Helpers;
namespace SharedLibraryCore.Interfaces
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// defines the capabilities of a resource queryier
/// </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
/// </summary>
/// <param name="query">query params</param>
/// <returns></returns>
Task<ResourceQueryHelperResult<ResultType>> QueryResource(QueryType query);
}
2022-01-26 11:32:16 -05:00
}