diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-05-27 22:24:39 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-05-27 22:24:39 -0500 |
| commit | fdf5a546e1a33ea5efd507bfec0859b7ad56c174 (patch) | |
| tree | e76c788591bc470e01f58ef1af37ce6f199011c8 /src/slskd/Core/Search/ISearchService.cs | |
| parent | 1774865e4027b1233d497d66396677699ee25341 (diff) | |
| download | slskd-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.cs | 2 |
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); } |
