aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay/DummyRelayClient.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2023-01-21 11:20:43 -0600
committerJP Dillingham <jpdillingham@gmail.com>2023-01-21 11:20:43 -0600
commit68967df8b01088a88f517c75ef94e9bac8dd6dad (patch)
tree4d8342f58579b76422008669b71a894a7cdc00a5 /src/slskd/Relay/DummyRelayClient.cs
parentcbf0c9749c0eb64c47e9ab09b8d0453a37c70f8e (diff)
downloadslskd-68967df8b01088a88f517c75ef94e9bac8dd6dad.tar.gz
rename Dummy client to Null
Diffstat (limited to 'src/slskd/Relay/DummyRelayClient.cs')
-rw-r--r--src/slskd/Relay/DummyRelayClient.cs49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/slskd/Relay/DummyRelayClient.cs b/src/slskd/Relay/DummyRelayClient.cs
deleted file mode 100644
index c5bd477c..00000000
--- a/src/slskd/Relay/DummyRelayClient.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// <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>();
-
- private bool Disposed { get; set; }
-
- public void Dispose()
- {
- Dispose(disposing: true);
- System.GC.SuppressFinalize(this);
- }
-
- public Task StartAsync(CancellationToken cancellationToken = default) => Task.CompletedTask;
-
- public Task StopAsync(CancellationToken cancellationToken = default) => Task.CompletedTask;
-
- public Task SynchronizeAsync(CancellationToken cancellationToken = default) => Task.CompletedTask;
-
- protected virtual void Dispose(bool disposing)
- {
- if (!Disposed)
- {
- Disposed = true;
- }
- }
- }
-} \ No newline at end of file