Soenneker.Adyen.HttpClients
4.0.117
Prefix Reserved
dotnet add package Soenneker.Adyen.HttpClients --version 4.0.117
NuGet\Install-Package Soenneker.Adyen.HttpClients -Version 4.0.117
<PackageReference Include="Soenneker.Adyen.HttpClients" Version="4.0.117" />
<PackageVersion Include="Soenneker.Adyen.HttpClients" Version="4.0.117" />
<PackageReference Include="Soenneker.Adyen.HttpClients" />
paket add Soenneker.Adyen.HttpClients --version 4.0.117
#r "nuget: Soenneker.Adyen.HttpClients, 4.0.117"
#:package Soenneker.Adyen.HttpClients@4.0.117
#addin nuget:?package=Soenneker.Adyen.HttpClients&version=4.0.117
#tool nuget:?package=Soenneker.Adyen.HttpClients&version=4.0.117
Soenneker.Adyen.HttpClients
Provides a cached, configured HttpClient for the Adyen OpenAPI client.
Installation
dotnet add package Soenneker.Adyen.HttpClients
Configuration
{
"Adyen": {
"ApiKey": "your-api-key",
"ClientBaseUrl": "https://your-adyen-endpoint/",
"AuthHeaderName": "X-API-Key",
"AuthHeaderValueTemplate": "{token}"
}
}
Adyen:ApiKey is required. The other settings are optional:
ClientBaseUrloverrides the client's base address.AuthHeaderNamedefaults toAuthorization.AuthHeaderValueTemplatedefaults toBearer {token};{token}is replaced withApiKey.
Set the header name and template to the authentication format required by the Adyen API you are calling.
Registration
using Soenneker.Adyen.HttpClients.Registrars;
services.AddAdyenOpenApiHttpClientAsSingleton();
AddAdyenOpenApiHttpClientAsScoped() is also available. Both registrations use the singleton HTTP-client cache, so scopes reuse the same named client.
Usage
using Soenneker.Adyen.HttpClients.Abstract;
public sealed class AdyenRequestService
{
private readonly IAdyenOpenApiHttpClient _clientProvider;
public AdyenRequestService(IAdyenOpenApiHttpClient clientProvider)
{
_clientProvider = clientProvider;
}
public async Task<HttpResponseMessage> Send(HttpRequestMessage request, CancellationToken cancellationToken = default)
{
HttpClient client = await _clientProvider.Get(cancellationToken);
return await client.SendAsync(request, cancellationToken);
}
}
Get() returns the cached named client. Configuration is applied when that client is first created; changing configuration afterward does not rebuild it.
The dependency-injection container owns resolved providers. Disposing a provider removes and disposes its named HttpClient from the shared cache.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Extensions.Configuration (>= 4.0.895)
- Soenneker.Utils.HttpClientCache (>= 4.0.2090)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Adyen.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Adyen.OpenApiClientUtil
A thread-safe utility for obtaining Adyen's OpenApiClient singleton. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.117 | 66 | 9/17/2026 |
| 4.0.116 | 67 | 9/16/2026 |
| 4.0.115 | 84 | 9/16/2026 |
| 4.0.114 | 69 | 9/16/2026 |
| 4.0.113 | 63 | 9/16/2026 |
| 4.0.112 | 111 | 9/15/2026 |
| 4.0.111 | 133 | 9/13/2026 |
| 4.0.110 | 104 | 9/13/2026 |
| 4.0.109 | 105 | 9/13/2026 |
| 4.0.108 | 87 | 9/12/2026 |
| 4.0.106 | 124 | 9/12/2026 |
| 4.0.105 | 141 | 9/9/2026 |
| 4.0.104 | 120 | 9/9/2026 |
| 4.0.103 | 92 | 9/9/2026 |
| 4.0.102 | 109 | 9/8/2026 |
| 4.0.101 | 147 | 9/8/2026 |
| 4.0.100 | 118 | 9/8/2026 |
| 4.0.99 | 104 | 9/7/2026 |
| 4.0.98 | 111 | 9/7/2026 |
| 4.0.96 | 119 | 9/5/2026 |