Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed May 26, 2024
1 parent fa09ab6 commit f207710
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/BUTR.Site.NexusMods.Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,19 @@ public void ConfigureServices(IServiceCollection services)
var steamAPISection = _configuration.GetSection(SteamAPISectionName);
var depotDownloaderSection = _configuration.GetSection(DepotDownloaderSectionName);

//services.AddOptions<JsonSerializerOptions>().Configure(opt => Configure(opt));
services.AddOptions<JsonSerializerOptions>().Configure(opt => Configure(opt));
/*
services.AddValidatedOptions<ConnectionStringsOptions, ConnectionStringsOptionsValidator>().Bind(connectionStringSection);
services.AddValidatedOptionsWithHttp<CrashReporterOptions, CrashReporterOptionsValidator>().Bind(crashReporterSection);
services.AddValidatedOptionsWithHttp<NexusModsOptions, NexusModsOptionsValidator>().Bind(nexusModsSection);
//services.AddValidatedOptionsWithHttp<NexusModsUsersOptions, NexusModsUsersOptionsValidator>().Bind(nexusModsUsersSection);
services.AddValidatedOptionsWithHttp<NexusModsUsersOptions, NexusModsUsersOptionsValidator>().Bind(nexusModsUsersSection);
services.AddValidatedOptions<JwtOptions, JwtOptionsValidator>().Bind(jwtSection);
services.AddValidatedOptions<GitHubOptions, GitHubOptionsValidator>().Bind(gitHubSection);
services.AddValidatedOptions<DiscordOptions, DiscordOptionsValidator>().Bind(discordSection);
services.AddValidatedOptions<SteamAPIOptions, SteamAPIOptionsValidator>().Bind(steamAPISection);
services.AddValidatedOptions<SteamDepotDownloaderOptions, SteamDepotDownloaderOptionsValidator>().Bind(depotDownloaderSection);
*/

return;
services.AddHttpClient(string.Empty).ConfigureHttpClient((_, client) =>
{
client.DefaultRequestHeaders.Add("User-Agent", userAgent);
Expand Down Expand Up @@ -187,6 +188,7 @@ public void ConfigureServices(IServiceCollection services)
client.BaseAddress = new Uri("https://embed.gog.com/");
client.DefaultRequestHeaders.Add("User-Agent", userAgent);
}).AddPolicyHandler(GetRetryPolicy());
return;

Log.Warning("Test4");
services.AddQuartzHostedService(options =>
Expand Down

0 comments on commit f207710

Please sign in to comment.