Skip to content

Commit

Permalink
Update visibility of methods/props in internal classes
Browse files Browse the repository at this point in the history
  • Loading branch information
austins committed May 25, 2024
1 parent 6e7d5e9 commit 6f662bf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DiscordTranslationBot/Countries/CountryConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal static class CountryConstants
/// the supported languages of each translation provider.
/// In <see cref="CountryService.Initialize" />, the language codes will be mapped case-insensitive to a set of countries.
/// </summary>
internal static IReadOnlyDictionary<SingleEmoji, string[]> LangCodeMap { get; } =
public static IReadOnlyDictionary<SingleEmoji, string[]> LangCodeMap { get; } =
new Dictionary<SingleEmoji, string[]>
{
{ Emoji.FlagAustralia, ["en"] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal static class OptionsValidationExtensions
/// <param name="services">The services collection.</param>
/// <param name="configurationSection">The configuration section.</param>
/// <typeparam name="TOptions">The options type.</typeparam>
internal static void AddOptionsWithFluentValidation<TOptions>(
public static void AddOptionsWithFluentValidation<TOptions>(
this IServiceCollection services,
IConfigurationSection configurationSection)
where TOptions : class
Expand Down
4 changes: 2 additions & 2 deletions DiscordTranslationBot/Extensions/RateLimitingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal static class TranslationProviderExtensions
/// <param name="services">The services collection.</param>
/// <param name="configuration">The host configuration.</param>
/// <returns>Service collection.</returns>
internal static IServiceCollection AddTranslationProviders(
public static IServiceCollection AddTranslationProviders(
this IServiceCollection services,
IConfiguration configuration)
{
Expand Down

0 comments on commit 6f662bf

Please sign in to comment.