Files
jsmr/JSMR.Infrastructure/Integrations/DLSite/DLSiteClientRegistration.cs
Brian Bicknell d9e421178f
All checks were successful
ci / build-test (push) Successful in 2m21s
ci / publish-image (push) Successful in 2m19s
Added inital job entity and services. Added released works API integration.
2026-03-27 01:32:39 -04:00

27 lines
1.0 KiB
C#

//using JSMR.Application.Integrations.Ports;
//using JSMR.Infrastructure.Integrations.DLSite.Serialization;
//using Microsoft.Extensions.DependencyInjection;
//namespace JSMR.Infrastructure.Integrations.DLSite;
public static class DLSiteClientRegistration
{
//public static IServiceCollection AddDLSiteClient(this IServiceCollection services, Uri baseAddress)
//{
// // Build per-client JSON options with the DLSite-specific converters
// var json = DLSiteJsonContext.CreateOptions();
// services.AddHttpClient<IDLSiteClient, DLSiteClient>(client =>
// {
// client.BaseAddress = baseAddress; // e.g., new Uri("https://www.dlsite.com/")
// client.DefaultRequestHeaders.Accept.ParseAdd("application/json");
// client.Timeout = TimeSpan.FromSeconds(20);
// })
// .AddPolicyHandler(ResiliencePolicies.DefaultRetry()); // optional Polly
// // Provide the options to the client via DI
// services.AddSingleton(json);
// return services;
//}
}