From 6f662bfd1184c75b1cfbcc08b6fe21ec08e6fb15 Mon Sep 17 00:00:00 2001 From: austins Date: Fri, 24 May 2024 22:56:14 -0700 Subject: [PATCH] Update visibility of methods/props in internal classes --- DiscordTranslationBot/Countries/CountryConstants.cs | 2 +- .../Extensions/OptionsValidationExtensions.cs | 2 +- DiscordTranslationBot/Extensions/RateLimitingExtensions.cs | 4 ++-- .../Providers/Translation/TranslationProviderExtensions.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DiscordTranslationBot/Countries/CountryConstants.cs b/DiscordTranslationBot/Countries/CountryConstants.cs index a83caa4..a658f8a 100644 --- a/DiscordTranslationBot/Countries/CountryConstants.cs +++ b/DiscordTranslationBot/Countries/CountryConstants.cs @@ -15,7 +15,7 @@ internal static class CountryConstants /// the supported languages of each translation provider. /// In , the language codes will be mapped case-insensitive to a set of countries. /// - internal static IReadOnlyDictionary LangCodeMap { get; } = + public static IReadOnlyDictionary LangCodeMap { get; } = new Dictionary { { Emoji.FlagAustralia, ["en"] }, diff --git a/DiscordTranslationBot/Extensions/OptionsValidationExtensions.cs b/DiscordTranslationBot/Extensions/OptionsValidationExtensions.cs index 4cd6816..9637f22 100644 --- a/DiscordTranslationBot/Extensions/OptionsValidationExtensions.cs +++ b/DiscordTranslationBot/Extensions/OptionsValidationExtensions.cs @@ -11,7 +11,7 @@ internal static class OptionsValidationExtensions /// The services collection. /// The configuration section. /// The options type. - internal static void AddOptionsWithFluentValidation( + public static void AddOptionsWithFluentValidation( this IServiceCollection services, IConfigurationSection configurationSection) where TOptions : class diff --git a/DiscordTranslationBot/Extensions/RateLimitingExtensions.cs b/DiscordTranslationBot/Extensions/RateLimitingExtensions.cs index 3581099..11f82c0 100644 --- a/DiscordTranslationBot/Extensions/RateLimitingExtensions.cs +++ b/DiscordTranslationBot/Extensions/RateLimitingExtensions.cs @@ -4,9 +4,9 @@ namespace DiscordTranslationBot.Extensions; internal static class RateLimitingExtensions { - internal const string HealthCheckRateLimiterPolicyName = "HealthCheckRateLimiter"; + public const string HealthCheckRateLimiterPolicyName = "HealthCheckRateLimiter"; - internal static IServiceCollection AddRateLimiting(this IServiceCollection services) + public static IServiceCollection AddRateLimiting(this IServiceCollection services) { return services.AddRateLimiter( o => diff --git a/DiscordTranslationBot/Providers/Translation/TranslationProviderExtensions.cs b/DiscordTranslationBot/Providers/Translation/TranslationProviderExtensions.cs index 95d150f..351924b 100644 --- a/DiscordTranslationBot/Providers/Translation/TranslationProviderExtensions.cs +++ b/DiscordTranslationBot/Providers/Translation/TranslationProviderExtensions.cs @@ -31,7 +31,7 @@ internal static class TranslationProviderExtensions /// The services collection. /// The host configuration. /// Service collection. - internal static IServiceCollection AddTranslationProviders( + public static IServiceCollection AddTranslationProviders( this IServiceCollection services, IConfiguration configuration) {