feat(core): add ISearchProcessor interface for search execution abstraction
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using JdeScoping.Core.Models.SearchResults;
|
||||
|
||||
namespace JdeScoping.Core.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for search query execution.
|
||||
/// </summary>
|
||||
public interface ISearchProcessor
|
||||
{
|
||||
/// <summary>
|
||||
/// Executes search and materializes all results into SearchModel.
|
||||
/// </summary>
|
||||
/// <param name="model">The search model containing search ID.</param>
|
||||
/// <param name="ct">Cancellation token.</param>
|
||||
/// <returns>The SearchModel populated with results.</returns>
|
||||
Task<SearchModel> ExecuteSearchToModelAsync(SearchModel model, CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user