aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Search/ISearchService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Core/Search/ISearchService.cs')
-rw-r--r--src/slskd/Core/Search/ISearchService.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slskd/Core/Search/ISearchService.cs b/src/slskd/Core/Search/ISearchService.cs
index 0182beab..1936b30f 100644
--- a/src/slskd/Core/Search/ISearchService.cs
+++ b/src/slskd/Core/Search/ISearchService.cs
@@ -18,13 +18,14 @@
namespace slskd.Search
{
using System;
+ using System.Linq.Expressions;
using System.Threading.Tasks;
using Soulseek;
public interface ISearchService
{
- Task<Guid> BeginAsync(SearchQuery query, SearchScope scope = null, SearchOptions options = null);
+ Task<(Guid Id, Task<Soulseek.Search> Completed)> BeginAsync(SearchQuery query, SearchScope scope = null, SearchOptions options = null, Guid? id = null);
bool TryCancel(Guid id);
- Task<Search> FindAsync(Guid id);
+ Task<Search> FindAsync(Expression<Func<Search, bool>> expression, bool includeResponses = false);
}
}