From 82e1ae5f13aec70548bd7fc98e4d4a35e682f6df Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 1 Sep 2024 18:41:58 -0500 Subject: subscribe to directory event in shell service --- src/slskd/Integrations/Shell/ShellService.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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(nameof(ShellService), HandleDownloadFileCompleteEvent); + Events.Subscribe(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 -- cgit v1.2.3