Soenneker.Cloudflare.Utils.Client 11.0.1121

Prefix Reserved
dotnet add package Soenneker.Cloudflare.Utils.Client --version 11.0.1121
                    
NuGet\Install-Package Soenneker.Cloudflare.Utils.Client -Version 11.0.1121
                    
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.Cloudflare.Utils.Client" Version="11.0.1121" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Cloudflare.Utils.Client" Version="11.0.1121" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Cloudflare.Utils.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.Cloudflare.Utils.Client --version 11.0.1121
                    
#r "nuget: Soenneker.Cloudflare.Utils.Client, 11.0.1121"
                    
#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.Cloudflare.Utils.Client@11.0.1121
                    
#: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.Cloudflare.Utils.Client&version=11.0.1121
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Cloudflare.Utils.Client&version=11.0.1121
                    
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.Cloudflare.Utils.Client

Provides thread-safe, token-keyed caching for configured CloudflareOpenApiClient instances.

Installation

dotnet add package Soenneker.Cloudflare.Utils.Client

Configuration

{
  "Cloudflare": {
    "ApiKey": "your-api-token",
    "RequestResponseLogging": false
  }
}

The parameterless Get overload uses Cloudflare:ApiKey. Store API tokens in a secret provider. Request/response logging is optional; authorization headers are redacted by the underlying Cloudflare HTTP provider.

Registration

using Soenneker.Cloudflare.Utils.Client.Registrars;

services.AddCloudflareClientUtilAsSingleton();

Scoped registration is available when the generated-client cache should be scoped. In either case, the utility borrows a singleton Cloudflare HTTP provider so disposing a scoped utility does not tear down the shared HTTP clients.

Usage

using Soenneker.Cloudflare.Utils.Client.Abstract;

CloudflareOpenApiClient client = await clientUtil.Get(cancellationToken);

var response = await client.Zones.GetAsync(
    cancellationToken: cancellationToken);

Get(apiKey) maintains a distinct generated client and underlying authenticated HttpClient for each token. Use only a bounded set of long-lived tokens with a singleton utility; arbitrary one-off tokens otherwise remain cached.

Remove(apiKey) and RemoveSync(apiKey) remove the generated client and immediately remove and dispose its underlying HttpClient. Disposing the utility clears its generated-client cache; the separately owned singleton HTTP provider remains alive until its own container lifetime ends.

The returned generated client is shared for its cache lifetime. Do not mutate its request adapter or dispose infrastructure borrowed from it. Cloudflare API errors are surfaced through Kiota's generated exception behavior.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (16)

Showing the top 5 NuGet packages that depend on Soenneker.Cloudflare.Utils.Client:

Package Downloads
Soenneker.Cloudflare.Zones

Creates, finds, inspects, and deletes Cloudflare zones.

Soenneker.Cloudflare.DnsRecords

A utility for managing Cloudflare DNS records

Soenneker.Cloudflare.Workers

Manages Cloudflare Worker scripts and Worker custom domains.

Soenneker.Cloudflare.EmailRouting

A utility for managing Cloudflare email routing and addresses

Soenneker.Cloudflare.Ssl

Manages Cloudflare Universal SSL settings.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.1121 180 11/3/2026
11.0.1120 45 11/3/2026
11.0.1119 181 11/3/2026
11.0.1118 258 11/3/2026
11.0.1117 209 11/3/2026
11.0.1116 265 11/3/2026
11.0.1115 209 11/2/2026
11.0.1114 270 11/2/2026
11.0.1113 210 11/2/2026
11.0.1112 224 11/2/2026
11.0.1111 232 11/2/2026
11.0.1110 270 11/2/2026
11.0.1109 666 10/31/2026
11.0.1108 296 10/31/2026
11.0.1107 294 10/30/2026
11.0.1106 327 10/30/2026
11.0.1105 652 10/27/2026
11.0.1103 559 10/27/2026
11.0.1102 296 10/27/2026
11.0.1101 94 10/26/2026
Loading failed

Update dependency Soenneker.Cloudflare.HttpClient to 11.0.535 (#1633)