From 43c19eac0b258c852fc10d017daf1ee010f8cdcc Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 13 Oct 2022 09:43:17 -0500 Subject: differentiate read and read/write repositories. add host collection --- src/slskd/Shares/IShareService.cs | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'src/slskd/Shares/IShareService.cs') 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,27 +29,15 @@ namespace slskd.Shares public interface IShareService { /// - /// Gets the list of configured shares. + /// Gets the list of share hosts. /// - IReadOnlyList Shares { get; } + IReadOnlyList Hosts { get; } /// /// Gets the state monitor for the service. /// public IStateMonitor StateMonitor { get; } - /// - /// Adds the shares associated with the specified . - /// - /// The name of the agent. - void AddAgentShares(string agent); - - /// - /// Remotes the shares associated with the specified . - /// - /// The name of the agent. - void RemoveAgentShares(string agent); - /// /// Returns the entire contents of the share. /// @@ -82,7 +70,7 @@ namespace slskd.Shares Task> SearchAsync(SearchQuery query); /// - /// Scans the configured shares. + /// Scans the configured shares on the local host. /// /// The operation context. /// Thrown when a scan is already in progress. @@ -96,7 +84,7 @@ namespace slskd.Shares Task<(int Directories, int Files)> SummarizeShareAsync(Share share); /// - /// Cancels the currently running scan, if one is running. + /// Cancels the currently running scan on the local host, if one is running. /// /// A value indicating whether a scan was cancelled. bool TryCancelScan(); -- cgit v1.2.3