aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application/Application.cs18
-rw-r--r--src/slskd/Application/IApplication.cs6
2 files changed, 0 insertions, 24 deletions
diff --git a/src/slskd/Application/Application.cs b/src/slskd/Application/Application.cs
index 528dd831..98a1ecc2 100644
--- a/src/slskd/Application/Application.cs
+++ b/src/slskd/Application/Application.cs
@@ -161,29 +161,11 @@ namespace slskd
}
/// <summary>
- /// Connects the Soulseek client to the server using the configured username and password.
- /// </summary>
- /// <returns>The operation context.</returns>
- public Task ConnectAsync()
- => Client.ConnectAsync(Options.Soulseek.Username, Options.Soulseek.Password);
-
- /// <summary>
- /// Disconnects the Soulseek client from the server.
- /// </summary>
- /// <param name="message">An optional message containing the reason for the disconnect.</param>
- /// <param name="exception">An optional Exception to associate with the disconnect.</param>
- public void Disconnect(string message = null, Exception exception = null)
- => Client.Disconnect(message, exception ?? new IntentionalDisconnectException(message));
-
- /// <summary>
/// Re-scans shared directories.
/// </summary>
/// <returns>The operation context.</returns>
public Task RescanSharesAsync() => SharedFileCache.FillAsync();
- public Task<Soulseek.Search> SearchAsync(SearchQuery query, Action<SearchResponse> responseReceived, SearchScope scope = null, int? token = null, SearchOptions options = null, CancellationToken? cancellationToken = null)
- => Client.SearchAsync(query, responseReceived, scope, token, options, cancellationToken);
-
async Task IHostedService.StartAsync(CancellationToken cancellationToken)
{
Logger.Information("Configuring client");
diff --git a/src/slskd/Application/IApplication.cs b/src/slskd/Application/IApplication.cs
index 3c8c8e44..18e4ad89 100644
--- a/src/slskd/Application/IApplication.cs
+++ b/src/slskd/Application/IApplication.cs
@@ -17,18 +17,12 @@
namespace slskd
{
- using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
public interface IApplication : IHostedService
{
public Task CheckVersionAsync();
-
- public Task ConnectAsync();
-
- public void Disconnect(string message = null, Exception exception = null);
-
public Task RescanSharesAsync();
}
} \ No newline at end of file