aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Integrations/Shell/ShellService.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/slskd/Integrations/Shell/ShellService.cs b/src/slskd/Integrations/Shell/ShellService.cs
index ddb65a53..baed28f8 100644
--- a/src/slskd/Integrations/Shell/ShellService.cs
+++ b/src/slskd/Integrations/Shell/ShellService.cs
@@ -20,6 +20,7 @@ namespace slskd.Integrations.Shell;
using System;
using System.Threading.Tasks;
using Serilog;
+using slskd.Events;
public class ShellService
{
@@ -28,6 +29,7 @@ public class ShellService
Events = eventBus;
Events.Subscribe<DownloadFileCompleteEvent>(nameof(ShellService), HandleDownloadFileCompleteEvent);
+ Events.Subscribe<DownloadDirectoryCompleteEvent>(nameof(ShellService), HandleDownloadDirectoryCompleteEvent);
Log.Debug("Shell service initialized");
}
@@ -39,4 +41,9 @@ public class ShellService
{
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