aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Search/ISearchService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-05-27 22:24:39 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-05-27 22:24:39 -0500
commitfdf5a546e1a33ea5efd507bfec0859b7ad56c174 (patch)
treee76c788591bc470e01f58ef1af37ce6f199011c8 /src/slskd/Core/Search/ISearchService.cs
parent1774865e4027b1233d497d66396677699ee25341 (diff)
downloadslskd-fdf5a546e1a33ea5efd507bfec0859b7ad56c174.tar.gz
simplify api, don't persist results until search is complete
Diffstat (limited to 'src/slskd/Core/Search/ISearchService.cs')
-rw-r--r--src/slskd/Core/Search/ISearchService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Core/Search/ISearchService.cs b/src/slskd/Core/Search/ISearchService.cs
index 7f44abb7..44d3edb9 100644
--- a/src/slskd/Core/Search/ISearchService.cs
+++ b/src/slskd/Core/Search/ISearchService.cs
@@ -24,7 +24,7 @@ namespace slskd.Search
public interface ISearchService
{
- Task<(Guid Id, Task<Search> Completed)> BeginAsync(SearchQuery query, SearchScope scope = null, SearchOptions options = null, Guid? id = null);
+ Task<Search> SearchAsync(Guid id, SearchQuery query, SearchScope scope, SearchOptions options = null);
bool TryCancel(Guid id);
Task<Search> FindAsync(Expression<Func<Search, bool>> expression, bool includeResponses = false);
}