aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Integrations
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-07-12 20:41:44 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-07-12 20:41:44 -0500
commit99954b32edd7fb6e4edc69557649758360c03647 (patch)
tree3288d094c7487eb0608c4819b7af32abe62f2dcb /src/slskd/Integrations
parent07133bd2a51acf5275578b7d4167dd3b9f689d7f (diff)
parent373b2974614171f5492d2e36899a7c0a67fa4395 (diff)
downloadslskd-99954b32edd7fb6e4edc69557649758360c03647.tar.gz
Merge branch 'options' of https://github.com/slskd/slskd into options
Diffstat (limited to 'src/slskd/Integrations')
-rw-r--r--src/slskd/Integrations/FTP/FTPClientFactory.cs6
-rw-r--r--src/slskd/Integrations/FTP/FTPService.cs6
-rw-r--r--src/slskd/Integrations/Pushbullet/PushbulletService.cs6
3 files changed, 9 insertions, 9 deletions
diff --git a/src/slskd/Integrations/FTP/FTPClientFactory.cs b/src/slskd/Integrations/FTP/FTPClientFactory.cs
index cc076ca1..5b8639dc 100644
--- a/src/slskd/Integrations/FTP/FTPClientFactory.cs
+++ b/src/slskd/Integrations/FTP/FTPClientFactory.cs
@@ -19,7 +19,7 @@ namespace slskd.Integrations.FTP
{
using System;
using FluentFTP;
- using static slskd.Options.IntegrationOptions;
+ using static slskd.Configuration.IntegrationOptions;
/// <summary>
/// FTP client factory.
@@ -30,7 +30,7 @@ namespace slskd.Integrations.FTP
/// 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(Microsoft.Extensions.Options.IOptionsMonitor<Options> optionsMonitor)
+ public FTPClientFactory(Microsoft.Extensions.Options.IOptionsMonitor<Configuration> optionsMonitor)
{
Options = optionsMonitor.CurrentValue;
@@ -48,7 +48,7 @@ namespace slskd.Integrations.FTP
private FtpEncryptionMode EncryptionMode { get; set; }
private FTPOptions FTPOptions => Options.Integration.FTP;
- private Options Options { get; set; }
+ private Configuration Options { get; set; }
/// <summary>
/// Creates an instance of <see cref="FtpClient"/>.
diff --git a/src/slskd/Integrations/FTP/FTPService.cs b/src/slskd/Integrations/FTP/FTPService.cs
index a5fe6a8f..f7fd1ddd 100644
--- a/src/slskd/Integrations/FTP/FTPService.cs
+++ b/src/slskd/Integrations/FTP/FTPService.cs
@@ -23,7 +23,7 @@ namespace slskd.Integrations.FTP
using System.Threading.Tasks;
using FluentFTP;
using Microsoft.Extensions.Logging;
- using static slskd.Options.IntegrationOptions;
+ using static slskd.Configuration.IntegrationOptions;
/// <summary>
/// FTP Integration service.
@@ -38,7 +38,7 @@ namespace slskd.Integrations.FTP
/// <param name="log">The logger.</param>
public FTPService(
IFTPClientFactory ftpClientFactory,
- Microsoft.Extensions.Options.IOptionsMonitor<Options> optionsMonitor,
+ Microsoft.Extensions.Options.IOptionsMonitor<Configuration> optionsMonitor,
ILogger<FTPService> log)
{
Factory = ftpClientFactory;
@@ -49,7 +49,7 @@ namespace slskd.Integrations.FTP
private IFTPClientFactory Factory { get; set; }
private FTPOptions FTPOptions => Options.Integration.FTP;
private ILogger<FTPService> Log { get; set; }
- private Options Options { get; }
+ private Configuration Options { get; }
/// <summary>
/// Uploads the specified <paramref name="filename"/> to the configured FTP server.
diff --git a/src/slskd/Integrations/Pushbullet/PushbulletService.cs b/src/slskd/Integrations/Pushbullet/PushbulletService.cs
index cb31e6dc..8bf94af9 100644
--- a/src/slskd/Integrations/Pushbullet/PushbulletService.cs
+++ b/src/slskd/Integrations/Pushbullet/PushbulletService.cs
@@ -24,7 +24,7 @@ namespace slskd.Integrations.Pushbullet
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Logging;
- using static slskd.Options.IntegrationOptions;
+ using static slskd.Configuration.IntegrationOptions;
/// <summary>
/// Pushbullet integration service.
@@ -41,7 +41,7 @@ namespace slskd.Integrations.Pushbullet
/// <param name="log">The logger.</param>
public PushbulletService(
IHttpClientFactory httpClientFactory,
- Microsoft.Extensions.Options.IOptionsMonitor<Options> optionsMonitor,
+ Microsoft.Extensions.Options.IOptionsMonitor<Configuration> optionsMonitor,
ILogger<PushbulletService> log)
{
HttpClientFactory = httpClientFactory;
@@ -52,7 +52,7 @@ namespace slskd.Integrations.Pushbullet
}
private IHttpClientFactory HttpClientFactory { get; }
- private Options Options { get; }
+ private Configuration Options { get; }
private ILogger<PushbulletService> Log { get; }
private PushbulletOptions PushbulletOptions => Options.Integration.Pushbullet;
private IMemoryCache RecentlySent { get; }