From 6948f872bd4edfe9f8ab5debcd370aeb71dd788c Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 2 May 2026 11:16:54 -0500 Subject: remove ITransferService --- src/slskd/Transfers/TransferService.cs | 59 ++++++++++++---------------------- 1 file changed, 21 insertions(+), 38 deletions(-) (limited to 'src') diff --git a/src/slskd/Transfers/TransferService.cs b/src/slskd/Transfers/TransferService.cs index 6079dcd2..6dd852a0 100644 --- a/src/slskd/Transfers/TransferService.cs +++ b/src/slskd/Transfers/TransferService.cs @@ -30,51 +30,34 @@ // ╰───────────────────────────────────────────╶──── ─ ─── ─ ── ──┈ ┈ // -namespace slskd.Transfers -{ - using slskd.Transfers.Downloads; - using slskd.Transfers.Uploads; +namespace slskd.Transfers; + +using slskd.Transfers.Downloads; +using slskd.Transfers.Uploads; +/// +/// Manages transfers. +/// +public class TransferService +{ /// - /// Manages transfers. + /// Initializes a new instance of the class. /// - public interface ITransferService + public TransferService( + IUploadService uploadService = null, + IDownloadService downloadService = null) { - /// - /// Gets the upload service. - /// - IUploadService Uploads { get; } - - /// - /// Gets the download service. - /// - IDownloadService Downloads { get; } + Uploads = uploadService; + Downloads = downloadService; } /// - /// Manages transfers. + /// Gets the upload service. /// - public class TransferService : ITransferService - { - /// - /// Initializes a new instance of the class. - /// - public TransferService( - IUploadService uploadService = null, - IDownloadService downloadService = null) - { - Uploads = uploadService; - Downloads = downloadService; - } + public virtual IUploadService Uploads { get; init; } - /// - /// Gets the upload service. - /// - public IUploadService Uploads { get; init; } - - /// - /// Gets the download service. - /// - public IDownloadService Downloads { get; init; } - } + /// + /// Gets the download service. + /// + public virtual IDownloadService Downloads { get; init; } } \ No newline at end of file -- cgit v1.2.3