From 11466b1a1a76d43ad8760fe2bb9bbee49816333d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 23 Oct 2022 09:01:32 -0500 Subject: make disposable, add EnableKeepalive --- src/slskd/Shares/IShareRepository.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Shares/IShareRepository.cs b/src/slskd/Shares/IShareRepository.cs index 0cf5cd80..d8a57d65 100644 --- a/src/slskd/Shares/IShareRepository.cs +++ b/src/slskd/Shares/IShareRepository.cs @@ -24,7 +24,7 @@ namespace slskd.Shares /// /// Persistent storage of shared files and metadata. /// - public interface IShareRepository + public interface IShareRepository : IDisposable { /// /// Gets the connection string for this repository. @@ -67,6 +67,12 @@ namespace slskd.Shares /// The destination file. void DumpTo(string filename); + /// + /// Enable connection keepalive. + /// + /// A value indicating whether the keepalive logic should be executed. + void EnableKeepalive(bool enable); + /// /// Finds the filename of the file matching the specified . /// -- cgit v1.2.3