aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Integrations/Shell
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-09-22 16:54:42 -0500
committerJP Dillingham <jp@dillingham.me>2024-09-22 16:54:42 -0500
commita01994b6c6dd2a798cf2fe23706dacb894c807c1 (patch)
tree9a5c93c8a51f83959fc4d5e30027aea29da09e14 /src/slskd/Integrations/Shell
parent1eb7649c460518bbedae2bc25fae120b9faf8157 (diff)
downloadslskd-a01994b6c6dd2a798cf2fe23706dacb894c807c1.tar.gz
remove (temporarily) ShellService
Diffstat (limited to 'src/slskd/Integrations/Shell')
-rw-r--r--src/slskd/Integrations/Shell/ShellService.cs49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/slskd/Integrations/Shell/ShellService.cs b/src/slskd/Integrations/Shell/ShellService.cs
deleted file mode 100644
index baed28f8..00000000
--- a/src/slskd/Integrations/Shell/ShellService.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// <copyright file="ShellService.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.Integrations.Shell;
-
-using System;
-using System.Threading.Tasks;
-using Serilog;
-using slskd.Events;
-
-public class ShellService
-{
- public ShellService(EventBus eventBus)
- {
- Events = eventBus;
-
- Events.Subscribe<DownloadFileCompleteEvent>(nameof(ShellService), HandleDownloadFileCompleteEvent);
- Events.Subscribe<DownloadDirectoryCompleteEvent>(nameof(ShellService), HandleDownloadDirectoryCompleteEvent);
-
- Log.Debug("Shell service initialized");
- }
-
- private ILogger Log { get; } = Serilog.Log.ForContext<ShellService>();
- private EventBus Events { get; }
-
- private async Task HandleDownloadFileCompleteEvent(DownloadFileCompleteEvent data)
- {
- Console.WriteLine("here is where we would call an external application!");
- }
-
- private async Task HandleDownloadDirectoryCompleteEvent(DownloadDirectoryCompleteEvent data)
- {
- Console.WriteLine("wow we downloaded a whole directory");
- }
-} \ No newline at end of file