aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Integrations/FTP/FTPClientFactory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Integrations/FTP/FTPClientFactory.cs')
-rw-r--r--src/slskd/Integrations/FTP/FTPClientFactory.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/slskd/Integrations/FTP/FTPClientFactory.cs b/src/slskd/Integrations/FTP/FTPClientFactory.cs
index 7c55195f..b0c136a0 100644
--- a/src/slskd/Integrations/FTP/FTPClientFactory.cs
+++ b/src/slskd/Integrations/FTP/FTPClientFactory.cs
@@ -31,10 +31,10 @@ namespace slskd.Integrations.FTP
/// <summary>
/// Initializes a new instance of the <see cref="FTPClientFactory"/> class.
/// </summary>
- /// <param name="optionsMonitor">The options monitor used to derive application options.</param>
- public FTPClientFactory(IOptionsMonitor<Options> optionsMonitor)
+ /// <param name="optionsSnapshot">The options monitor used to derive application options.</param>
+ public FTPClientFactory(IOptionsSnapshot<Options> optionsSnapshot)
{
- Options = optionsMonitor.CurrentValue;
+ OptionsSnapshot = optionsSnapshot;
try
{
@@ -49,8 +49,8 @@ namespace slskd.Integrations.FTP
}
private FtpEncryptionMode EncryptionMode { get; set; }
- private FTPOptions FTPOptions => Options.Integration.FTP;
- private Options Options { get; set; }
+ private FTPOptions FTPOptions => OptionsSnapshot.Value.Integration.FTP;
+ private IOptionsSnapshot<Options> OptionsSnapshot { get; set; }
/// <summary>
/// Creates an instance of <see cref="FtpClient"/>.