Soenneker.Asana.HttpClients
4.0.101
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Asana.HttpClients --version 4.0.101
NuGet\Install-Package Soenneker.Asana.HttpClients -Version 4.0.101
<PackageReference Include="Soenneker.Asana.HttpClients" Version="4.0.101" />
<PackageVersion Include="Soenneker.Asana.HttpClients" Version="4.0.101" />
<PackageReference Include="Soenneker.Asana.HttpClients" />
paket add Soenneker.Asana.HttpClients --version 4.0.101
#r "nuget: Soenneker.Asana.HttpClients, 4.0.101"
#:package Soenneker.Asana.HttpClients@4.0.101
#addin nuget:?package=Soenneker.Asana.HttpClients&version=4.0.101
#tool nuget:?package=Soenneker.Asana.HttpClients&version=4.0.101
Soenneker.Asana.HttpClients
Provides a cached, authenticated HttpClient for the Asana OpenAPI client.
Installation
dotnet add package Soenneker.Asana.HttpClients
Configuration
{
"Asana": {
"ApiKey": "your-personal-access-token"
}
}
Asana:ApiKey is required. The client uses https://app.asana.com/api/1.0 and Authorization: Bearer {token} by default. These optional settings override that behavior:
{
"Asana": {
"ClientBaseUrl": "https://proxy.example.com/asana/",
"AuthHeaderName": "Authorization",
"AuthHeaderValueTemplate": "Bearer {token}"
}
}
Registration
using Soenneker.Asana.HttpClients.Registrars;
services.AddAsanaOpenApiHttpClientAsSingleton();
AddAsanaOpenApiHttpClientAsScoped() is also available. Both registrations reuse the singleton HTTP-client cache.
Usage
using Soenneker.Asana.HttpClients.Abstract;
public sealed class AsanaTransport
{
private readonly IAsanaOpenApiHttpClient _clientProvider;
public AsanaTransport(IAsanaOpenApiHttpClient 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() creates the named client on first use and returns it afterward. Configuration changes do not rebuild an existing client. Do not dispose the returned HttpClient per request. Disposing the provider removes and disposes its named client 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.872)
- Soenneker.Utils.HttpClientCache (>= 4.0.2052)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Asana.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Asana.OpenApiClientUtil
A thread-safe utility for obtaining Asana's OpenApiClient singleton. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.114 | 39 | 9/8/2026 |
| 4.0.113 | 44 | 9/8/2026 |
| 4.0.112 | 53 | 9/7/2026 |
| 4.0.111 | 59 | 9/7/2026 |
| 4.0.110 | 51 | 9/7/2026 |
| 4.0.109 | 65 | 9/5/2026 |
| 4.0.108 | 48 | 9/5/2026 |
| 4.0.107 | 69 | 9/4/2026 |
| 4.0.106 | 60 | 9/4/2026 |
| 4.0.105 | 61 | 9/4/2026 |
| 4.0.104 | 61 | 9/4/2026 |
| 4.0.102 | 73 | 9/4/2026 |
| 4.0.101 | 96 | 9/3/2026 |
| 4.0.100 | 138 | 9/1/2026 |
| 4.0.99 | 90 | 9/1/2026 |
| 4.0.98 | 93 | 8/31/2026 |
| 4.0.97 | 113 | 8/31/2026 |
| 4.0.96 | 141 | 8/30/2026 |
| 4.0.95 | 88 | 8/30/2026 |
| 4.0.94 | 128 | 8/30/2026 |