aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay/DummyRelayClient.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-11-14 21:09:45 -0600
committerGitHub <noreply@github.com>2022-11-14 21:09:45 -0600
commit3d0af40b9e85ee4dc07665ffdf16449a873a0640 (patch)
tree2761ad1c85408c1524be6d4dd6e0e4ee45b77ec7 /src/slskd/Relay/DummyRelayClient.cs
parent5f2923973dc2fa5b65a602c3f30cf7c5448eda0a (diff)
parent75e7d6accd92a07ae13c7eff16893cf577af255b (diff)
downloadslskd-3d0af40b9e85ee4dc07665ffdf16449a873a0640.tar.gz
Merge pull request #753 from slskd/relay
Rename 'Network' functionality to 'Relay'
Diffstat (limited to 'src/slskd/Relay/DummyRelayClient.cs')
-rw-r--r--src/slskd/Relay/DummyRelayClient.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/slskd/Relay/DummyRelayClient.cs b/src/slskd/Relay/DummyRelayClient.cs
new file mode 100644
index 00000000..dca4f808
--- /dev/null
+++ b/src/slskd/Relay/DummyRelayClient.cs
@@ -0,0 +1,35 @@
+// <copyright file="DummyRelayClient.cs" company="slskd Team">
+// Copyright (c) slskd Team. All rights reserved.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see https://www.gnu.org/licenses/.
+// </copyright>
+
+namespace slskd.Relay
+{
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ public class DummyRelayClient : IRelayClient
+ {
+ public IStateMonitor<RelayClientState> StateMonitor => new ManagedState<RelayClientState>();
+
+ public void Dispose() { }
+
+ public Task StartAsync(CancellationToken cancellationToken = default) => Task.CompletedTask;
+
+ public Task StopAsync(CancellationToken cancellationToken = default) => Task.CompletedTask;
+
+ public Task SynchronizeAsync(CancellationToken cancellationToken = default) => Task.CompletedTask;
+ }
+}