aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-09-01 18:42:28 -0500
committerJP Dillingham <jp@dillingham.me>2024-09-01 18:42:28 -0500
commit45e24f623a6cf5d7d9a400b7f8bc07809e8993d0 (patch)
tree1d44f82d5c0fc76dbc2c42e068a3d72c85d63890
parent82e1ae5f13aec70548bd7fc98e4d4a35e682f6df (diff)
downloadslskd-45e24f623a6cf5d7d9a400b7f8bc07809e8993d0.tar.gz
use events namespace, rename Events to EventBus
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs
index ae4062c0..3864c3a5 100644
--- a/src/slskd/Transfers/Downloads/DownloadService.cs
+++ b/src/slskd/Transfers/Downloads/DownloadService.cs
@@ -1,4 +1,4 @@
-// <copyright file="DownloadService.cs" company="slskd Team">
+// <copyright file="DownloadService.cs" company="slskd Team">
// Copyright (c) slskd Team. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
@@ -29,6 +29,7 @@ namespace slskd.Transfers.Downloads
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Serilog;
+ using slskd.Events;
using slskd.Files;
using slskd.Integrations.FTP;
using slskd.Relay;
@@ -131,7 +132,7 @@ namespace slskd.Transfers.Downloads
Files = fileService;
FTP = ftpClient;
Relay = relayService;
- Events = eventBus;
+ EventBus = eventBus;
}
private ConcurrentDictionary<Guid, CancellationTokenSource> CancellationTokens { get; } = new ConcurrentDictionary<Guid, CancellationTokenSource>();
@@ -142,7 +143,7 @@ namespace slskd.Transfers.Downloads
private IRelayService Relay { get; }
private ILogger Log { get; } = Serilog.Log.ForContext<DownloadService>();
private IOptionsMonitor<Options> OptionsMonitor { get; }
- private EventBus Events { get; }
+ private EventBus EventBus { get; }
/// <summary>
/// Adds the specified <paramref name="transfer"/>. Supersedes any existing record for the same file and username.