Skip to content

Commit

Permalink
Discord fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Sep 6, 2024
1 parent 48ae59e commit 74c14ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/P3D.Legacy.Server/P3D.Legacy.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<PropertyGroup>
<Version>0.10</Version>
<!--
<InvariantGlobalization>true</InvariantGlobalization>
-->

<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>CS1591;</NoWarn>
Expand Down
4 changes: 2 additions & 2 deletions src/P3D.Legacy.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static class Program
private const string LiteDbSectionName = "LiteDb";
private const string OfficialSiteSectionName = "OfficialSite";
private const string P3DServerSectionName = "P3DServer";
private const string DiscordBotSectionName = "DiscordBot";
private const string DiscordSectionName = "Discord";
private const string JwtSectionName = "Jwt";
private const string OtlpSectionName = "Otlp";

Expand Down Expand Up @@ -96,7 +96,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) => Host
services.AddValidatedOptions<P3DIntegrationOptions, P3DIntegrationOptionsValidator>().Bind(ctx.Configuration.GetSection(ServerSectionName));
services.AddValidatedOptionsWithHttp<P3DSiteOptions, P3DSiteOptionsValidator>().Bind(ctx.Configuration.GetSection(OfficialSiteSectionName));
services.AddValidatedOptions<P3DServerOptions, P3DServerOptionsValidator>().Bind(ctx.Configuration.GetSection(P3DServerSectionName));
services.AddValidatedOptions<DiscordOptions, DiscordOptionsValidator>().Bind(ctx.Configuration.GetSection(DiscordBotSectionName));
services.AddValidatedOptions<DiscordOptions, DiscordOptionsValidator>().Bind(ctx.Configuration.GetSection(DiscordSectionName));
services.AddValidatedOptions<LiteDbOptions, LiteDbOptionsValidator>().Bind(ctx.Configuration.GetSection(LiteDbSectionName));
services.AddValidatedOptions<JwtOptions, JwtOptionsValidator>().Bind(ctx.Configuration.GetSection(JwtSectionName));
services.AddValidatedOptions<OtlpOptions, OtlpOptionsValidator>().Bind(ctx.Configuration.GetSection(OtlpSectionName));
Expand Down

0 comments on commit 74c14ac

Please sign in to comment.