From 420635d781ef6c154425e4bbe81303eeee55ee73 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sat, 1 May 2021 15:54:29 -0500 Subject: [PATCH] refactor: rename BaseConfiguration to ServiceConfiguration --- src/Trash/Config/ConfigurationLoader.cs | 2 +- src/Trash/Config/ConfigurationProvider.cs | 2 +- src/Trash/Config/IConfigurationLoader.cs | 2 +- src/Trash/Config/IConfigurationProvider.cs | 2 +- .../Config/{BaseConfiguration.cs => ServiceConfiguration.cs} | 2 +- src/Trash/Radarr/RadarrConfiguration.cs | 2 +- src/Trash/Sonarr/SonarrConfiguration.cs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename src/Trash/Config/{BaseConfiguration.cs => ServiceConfiguration.cs} (79%) diff --git a/src/Trash/Config/ConfigurationLoader.cs b/src/Trash/Config/ConfigurationLoader.cs index 6d734cf1..a0f56709 100644 --- a/src/Trash/Config/ConfigurationLoader.cs +++ b/src/Trash/Config/ConfigurationLoader.cs @@ -11,7 +11,7 @@ using YamlDotNet.Serialization.NamingConventions; namespace Trash.Config { public class ConfigurationLoader : IConfigurationLoader - where T : BaseConfiguration + where T : ServiceConfiguration { private readonly IConfigurationProvider _configProvider; private readonly IDeserializer _deserializer; diff --git a/src/Trash/Config/ConfigurationProvider.cs b/src/Trash/Config/ConfigurationProvider.cs index 95e6ab11..85ed9586 100644 --- a/src/Trash/Config/ConfigurationProvider.cs +++ b/src/Trash/Config/ConfigurationProvider.cs @@ -1,7 +1,7 @@ namespace Trash.Config { internal class ConfigurationProvider : IConfigurationProvider - where T : BaseConfiguration + where T : ServiceConfiguration { public T? ActiveConfiguration { get; set; } } diff --git a/src/Trash/Config/IConfigurationLoader.cs b/src/Trash/Config/IConfigurationLoader.cs index 1c1c4de9..8326e359 100644 --- a/src/Trash/Config/IConfigurationLoader.cs +++ b/src/Trash/Config/IConfigurationLoader.cs @@ -4,7 +4,7 @@ using System.IO; namespace Trash.Config { public interface IConfigurationLoader - where T : BaseConfiguration + where T : ServiceConfiguration { IEnumerable Load(string propertyName, string configSection); IEnumerable LoadFromStream(TextReader stream, string configSection); diff --git a/src/Trash/Config/IConfigurationProvider.cs b/src/Trash/Config/IConfigurationProvider.cs index c4f248a6..d48b38c0 100644 --- a/src/Trash/Config/IConfigurationProvider.cs +++ b/src/Trash/Config/IConfigurationProvider.cs @@ -1,7 +1,7 @@ namespace Trash.Config { public interface IConfigurationProvider - where T : BaseConfiguration + where T : ServiceConfiguration { T? ActiveConfiguration { get; set; } } diff --git a/src/Trash/Config/BaseConfiguration.cs b/src/Trash/Config/ServiceConfiguration.cs similarity index 79% rename from src/Trash/Config/BaseConfiguration.cs rename to src/Trash/Config/ServiceConfiguration.cs index 7c282aee..775286ff 100644 --- a/src/Trash/Config/BaseConfiguration.cs +++ b/src/Trash/Config/ServiceConfiguration.cs @@ -1,6 +1,6 @@ namespace Trash.Config { - public abstract class BaseConfiguration + public abstract class ServiceConfiguration { public string BaseUrl { get; init; } = ""; public string ApiKey { get; init; } = ""; diff --git a/src/Trash/Radarr/RadarrConfiguration.cs b/src/Trash/Radarr/RadarrConfiguration.cs index 57654bfa..7a08dcbe 100644 --- a/src/Trash/Radarr/RadarrConfiguration.cs +++ b/src/Trash/Radarr/RadarrConfiguration.cs @@ -6,7 +6,7 @@ using Trash.Radarr.QualityDefinition; namespace Trash.Radarr { [UsedImplicitly(ImplicitUseTargetFlags.WithMembers)] - public class RadarrConfiguration : BaseConfiguration + public class RadarrConfiguration : ServiceConfiguration { public QualityDefinitionConfig? QualityDefinition { get; init; } diff --git a/src/Trash/Sonarr/SonarrConfiguration.cs b/src/Trash/Sonarr/SonarrConfiguration.cs index 534d06b5..771672fe 100644 --- a/src/Trash/Sonarr/SonarrConfiguration.cs +++ b/src/Trash/Sonarr/SonarrConfiguration.cs @@ -8,7 +8,7 @@ using Trash.Sonarr.ReleaseProfile; namespace Trash.Sonarr { [UsedImplicitly(ImplicitUseTargetFlags.WithMembers)] - public class SonarrConfiguration : BaseConfiguration + public class SonarrConfiguration : ServiceConfiguration { public IList ReleaseProfiles { get; set; } = new List(); public SonarrQualityDefinitionType? QualityDefinition { get; init; }