diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2023-01-21 11:20:43 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2023-01-21 11:20:43 -0600 |
| commit | 68967df8b01088a88f517c75ef94e9bac8dd6dad (patch) | |
| tree | 4d8342f58579b76422008669b71a894a7cdc00a5 /src/slskd/Relay/DummyRelayClient.cs | |
| parent | cbf0c9749c0eb64c47e9ab09b8d0453a37c70f8e (diff) | |
| download | slskd-68967df8b01088a88f517c75ef94e9bac8dd6dad.tar.gz | |
rename Dummy client to Null
Diffstat (limited to 'src/slskd/Relay/DummyRelayClient.cs')
| -rw-r--r-- | src/slskd/Relay/DummyRelayClient.cs | 49 |
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 |
