Soenneker.Asana.HttpClients
4.0.95
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Asana.HttpClients --version 4.0.95
NuGet\Install-Package Soenneker.Asana.HttpClients -Version 4.0.95
<PackageReference Include="Soenneker.Asana.HttpClients" Version="4.0.95" />
<PackageVersion Include="Soenneker.Asana.HttpClients" Version="4.0.95" />
<PackageReference Include="Soenneker.Asana.HttpClients" />
paket add Soenneker.Asana.HttpClients --version 4.0.95
#r "nuget: Soenneker.Asana.HttpClients, 4.0.95"
#:package Soenneker.Asana.HttpClients@4.0.95
#addin nuget:?package=Soenneker.Asana.HttpClients&version=4.0.95
#tool nuget:?package=Soenneker.Asana.HttpClients&version=4.0.95
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; the singleton cache owns it, and disposing a scoped provider leaves it available.
| 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.866)
- Soenneker.Utils.HttpClientCache (>= 4.0.2033)
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 | 0 | 9/8/2026 |
| 4.0.113 | 0 | 9/8/2026 |
| 4.0.112 | 0 | 9/7/2026 |
| 4.0.111 | 23 | 9/7/2026 |
| 4.0.110 | 32 | 9/7/2026 |
| 4.0.109 | 58 | 9/5/2026 |
| 4.0.108 | 41 | 9/5/2026 |
| 4.0.107 | 61 | 9/4/2026 |
| 4.0.106 | 51 | 9/4/2026 |
| 4.0.105 | 53 | 9/4/2026 |
| 4.0.104 | 52 | 9/4/2026 |
| 4.0.102 | 64 | 9/4/2026 |
| 4.0.101 | 87 | 9/3/2026 |
| 4.0.100 | 129 | 9/1/2026 |
| 4.0.99 | 82 | 9/1/2026 |
| 4.0.98 | 92 | 8/31/2026 |
| 4.0.97 | 112 | 8/31/2026 |
| 4.0.96 | 140 | 8/30/2026 |
| 4.0.95 | 87 | 8/30/2026 |
| 4.0.94 | 127 | 8/30/2026 |