Namespace SimpleSign.Core.Http
Classes
- DefaultHttpClientProvider
Default provider that uses a shared static HttpClient with a 30-second timeout. Safe for console apps and background services. For ASP.NET Core, prefer
IHttpClientFactory.
- HttpClientFactoryProvider
IHttpClientProvider backed by IHttpClientFactory. Each call to GetClient() calls
IHttpClientFactory.CreateClient(name), which respects the named-client configuration and lifetime managed by the factory.
Interfaces
- IHttpClientProvider
Provides HttpClient instances for SimpleSign network operations.
In ASP.NET Core, implement this interface using
IHttpClientFactoryto avoid socket exhaustion. The default implementation (DefaultHttpClientProvider) uses a shared static instance.