aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Search/ISearchService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-05-26 23:48:13 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-05-26 23:48:13 -0500
commit8feb789ba5dd4729ea0a7fbafdccd86e9e06f74c (patch)
tree70e76bbdd477a651a4c05ffcc5fbd0b28f12f883 /src/slskd/Core/Search/ISearchService.cs
parent0354b842141d354a82072aee78000f87ce8b348f (diff)
downloadslskd-8feb789ba5dd4729ea0a7fbafdccd86e9e06f74c.tar.gz
rough in SearchService
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);
}
}