aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/IShareService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-13 09:43:17 -0500
committerJP Dillingham <jp@dillingham.me>2022-10-13 09:43:17 -0500
commit43c19eac0b258c852fc10d017daf1ee010f8cdcc (patch)
treee74762e49f030ab95408c9a4ac56e71e89e6e17a /src/slskd/Shares/IShareService.cs
parent1e87c47a84ab5b2188fb34aa642b8bae123dc2d3 (diff)
downloadslskd-43c19eac0b258c852fc10d017daf1ee010f8cdcc.tar.gz
differentiate read and read/write repositories. add host collection
Diffstat (limited to 'src/slskd/Shares/IShareService.cs')
-rw-r--r--src/slskd/Shares/IShareService.cs20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/slskd/Shares/IShareService.cs b/src/slskd/Shares/IShareService.cs
index 3ec5fd56..821ac20e 100644
--- a/src/slskd/Shares/IShareService.cs
+++ b/src/slskd/Shares/IShareService.cs
@@ -29,9 +29,9 @@ namespace slskd.Shares
public interface IShareService
{
/// <summary>
- /// Gets the list of configured shares.
+ /// Gets the list of share hosts.
/// </summary>
- IReadOnlyList<Share> Shares { get; }
+ IReadOnlyList<Host> Hosts { get; }
/// <summary>
/// Gets the state monitor for the service.
@@ -39,18 +39,6 @@ namespace slskd.Shares
public IStateMonitor<ShareState> StateMonitor { get; }
/// <summary>
- /// Adds the shares associated with the specified <paramref name="agent"/>.
- /// </summary>
- /// <param name="agent">The name of the agent.</param>
- void AddAgentShares(string agent);
-
- /// <summary>
- /// Remotes the shares associated with the specified <paramref name="agent"/>.
- /// </summary>
- /// <param name="agent">The name of the agent.</param>
- void RemoveAgentShares(string agent);
-
- /// <summary>
/// Returns the entire contents of the share.
/// </summary>
/// <returns>The entire contents of the share.</returns>
@@ -82,7 +70,7 @@ namespace slskd.Shares
Task<IEnumerable<File>> SearchAsync(SearchQuery query);
/// <summary>
- /// Scans the configured shares.
+ /// Scans the configured shares on the local host.
/// </summary>
/// <returns>The operation context.</returns>
/// <exception cref="ShareScanInProgressException">Thrown when a scan is already in progress.</exception>
@@ -96,7 +84,7 @@ namespace slskd.Shares
Task<(int Directories, int Files)> SummarizeShareAsync(Share share);
/// <summary>
- /// Cancels the currently running scan, if one is running.
+ /// Cancels the currently running scan on the local host, if one is running.
/// </summary>
/// <returns>A value indicating whether a scan was cancelled.</returns>
bool TryCancelScan();