aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/IShareService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-10-15 08:04:47 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-10-15 08:04:47 -0500
commit5281911a0634bd790adef13e7e0de28d40e9ee4d (patch)
tree4320d179d24aae7a96fe055ea1fb43f6bca0fdf5 /src/slskd/Shares/IShareService.cs
parent4d69426a19ffff519368ec2b75e8634fdd23d861 (diff)
downloadslskd-5281911a0634bd790adef13e7e0de28d40e9ee4d.tar.gz
add ShareRepositoryFactory, consolidate a lot of OOP cruft
Diffstat (limited to 'src/slskd/Shares/IShareService.cs')
-rw-r--r--src/slskd/Shares/IShareService.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/slskd/Shares/IShareService.cs b/src/slskd/Shares/IShareService.cs
index 90fa115d..b55db482 100644
--- a/src/slskd/Shares/IShareService.cs
+++ b/src/slskd/Shares/IShareService.cs
@@ -43,18 +43,19 @@ namespace slskd.Shares
void AddOrUpdateHost(Host host);
/// <summary>
- /// Backs contents of the cache up to the specified file.
- /// </summary>
- /// <param name="connectionString">The destination connection string.</param>
- void BackupTo(string connectionString);
-
- /// <summary>
/// Returns the entire contents of the share.
/// </summary>
/// <returns>The entire contents of the share.</returns>
Task<IEnumerable<Directory>> BrowseAsync(Share share = null);
/// <summary>
+ /// Dumps the local share cache to a file.
+ /// </summary>
+ /// <param name="filename">The destination file.</param>
+ /// <returns>The operation context.</returns>
+ Task DumpAsync(string filename);
+
+ /// <summary>
/// Returns the contents of the specified <paramref name="directory"/>.
/// </summary>
/// <param name="directory">The directory for which the contents are to be listed.</param>