diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-07-11 22:32:47 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-07-11 22:32:47 -0500 |
| commit | 373b2974614171f5492d2e36899a7c0a67fa4395 (patch) | |
| tree | e48040e71d20fa25ee9b142a6c800aab1b3d8ef0 /src/slskd/Integrations | |
| parent | d8eb620c39da4d6ac61fd2d55babb2d73558c9e6 (diff) | |
| download | slskd-373b2974614171f5492d2e36899a7c0a67fa4395.tar.gz | |
wip
Diffstat (limited to 'src/slskd/Integrations')
| -rw-r--r-- | src/slskd/Integrations/FTP/FTPClientFactory.cs | 6 | ||||
| -rw-r--r-- | src/slskd/Integrations/FTP/FTPService.cs | 6 | ||||
| -rw-r--r-- | src/slskd/Integrations/Pushbullet/PushbulletService.cs | 6 |
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; } |
