aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-10-23 09:01:32 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-10-23 09:01:32 -0500
commit11466b1a1a76d43ad8760fe2bb9bbee49816333d (patch)
treedc1281ac0c08bf80505e4df49acd300dcdd45aeb /src
parentfbc2738b419b395abe166b74dc2d63aacfe0bbc8 (diff)
downloadslskd-11466b1a1a76d43ad8760fe2bb9bbee49816333d.tar.gz
make disposable, add EnableKeepalive
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Shares/IShareRepository.cs8
1 files changed, 7 insertions, 1 deletions
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
/// <summary>
/// Persistent storage of shared files and metadata.
/// </summary>
- public interface IShareRepository
+ public interface IShareRepository : IDisposable
{
/// <summary>
/// Gets the connection string for this repository.
@@ -68,6 +68,12 @@ namespace slskd.Shares
void DumpTo(string filename);
/// <summary>
+ /// Enable connection keepalive.
+ /// </summary>
+ /// <param name="enable">A value indicating whether the keepalive logic should be executed.</param>
+ void EnableKeepalive(bool enable);
+
+ /// <summary>
/// Finds the filename of the file matching the specified <paramref name="maskedFilename"/>.
/// </summary>
/// <param name="maskedFilename">The fully qualified remote path of the file.</param>