Soenneker.DNSimple.Client 4.0.596

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.DNSimple.Client --version 4.0.596
                    
NuGet\Install-Package Soenneker.DNSimple.Client -Version 4.0.596
                    
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.DNSimple.Client" Version="4.0.596" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.DNSimple.Client" Version="4.0.596" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.DNSimple.Client" />
                    
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.DNSimple.Client --version 4.0.596
                    
#r "nuget: Soenneker.DNSimple.Client, 4.0.596"
                    
#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.DNSimple.Client@4.0.596
                    
#: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.DNSimple.Client&version=4.0.596
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.DNSimple.Client&version=4.0.596
                    
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.DNSimple.Client

Provides a cached HttpClient configured for DNSimple's production or sandbox API with bearer-token authentication.

Installation

dotnet add package Soenneker.DNSimple.Client

Configuration

{
  "DNSimple": {
    "Token": "your-api-token",
    "Test": false
  }
}

Set DNSimple:Test to true to use https://api.sandbox.dnsimple.com/v2/; otherwise the client uses https://api.dnsimple.com/v2/. The token is sent as Authorization: Bearer <Token>.

Registration and usage

using Soenneker.DNSimple.Client.Abstract;
using Soenneker.DNSimple.Client.Registrars;

services.AddDNSimpleClientUtilAsSingleton();

public sealed class DNSimpleIdentityReader(IDNSimpleClientUtil clients)
{
    public async Task<HttpResponseMessage> Get(CancellationToken cancellationToken)
    {
        HttpClient client = await clients.Get(cancellationToken);
        return await client.GetAsync("whoami", cancellationToken);
    }
}

The provider owns the returned client. Singleton registration keeps one client for the application lifetime. Scoped registration creates a separately owned cache entry per scope, so disposing one scope cannot remove another provider's client.

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.DNSimple.Client:

Package Downloads
Soenneker.DNSimple.OpenApiClientUtil

Provides a cached DNSimple OpenAPI client backed by the configured DNSimple HttpClient.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.628 122 10/15/2026
4.0.627 38 10/15/2026
4.0.626 53 10/14/2026
4.0.625 105 10/14/2026
4.0.624 232 10/14/2026
4.0.623 39 10/14/2026
4.0.621 35 10/14/2026
4.0.613 153 10/13/2026
4.0.612 79 10/13/2026
4.0.611 74 10/13/2026
4.0.609 201 10/12/2026
4.0.608 293 10/12/2026
4.0.607 111 10/12/2026
4.0.606 97 10/12/2026
4.0.605 111 10/11/2026
4.0.604 121 10/11/2026
4.0.603 132 10/11/2026
4.0.602 273 10/9/2026
4.0.601 693 10/1/2026
4.0.596 131 9/25/2026
Loading failed

Update dependency Soenneker.Utils.HttpClientCache to 4.0.2095 (#1153)