Soenneker.Asana.HttpClients 4.0.135

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Asana.HttpClients --version 4.0.135
                    
NuGet\Install-Package Soenneker.Asana.HttpClients -Version 4.0.135
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Asana.HttpClients" Version="4.0.135" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Asana.HttpClients" Version="4.0.135" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Asana.HttpClients" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Asana.HttpClients --version 4.0.135
                    
#r "nuget: Soenneker.Asana.HttpClients, 4.0.135"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Asana.HttpClients@4.0.135
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Asana.HttpClients&version=4.0.135
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Asana.HttpClients&version=4.0.135
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.136 48 9/26/2026
4.0.135 48 9/26/2026
4.0.134 48 9/25/2026
4.0.132 37 9/25/2026
4.0.131 49 9/24/2026
4.0.130 167 9/17/2026
4.0.129 114 9/16/2026
4.0.128 88 9/16/2026
4.0.127 102 9/16/2026
4.0.126 112 9/16/2026
4.0.125 120 9/15/2026
4.0.124 90 9/15/2026
4.0.123 135 9/13/2026
4.0.122 101 9/13/2026
4.0.121 113 9/13/2026
4.0.120 104 9/12/2026
4.0.119 125 9/12/2026
4.0.118 128 9/12/2026
4.0.117 136 9/9/2026
4.0.116 112 9/9/2026
Loading failed