Soenneker.Cursor.CloudAgents.OpenApiClientUtil
11.0.269
Prefix Reserved
dotnet add package Soenneker.Cursor.CloudAgents.OpenApiClientUtil --version 11.0.269
NuGet\Install-Package Soenneker.Cursor.CloudAgents.OpenApiClientUtil -Version 11.0.269
<PackageReference Include="Soenneker.Cursor.CloudAgents.OpenApiClientUtil" Version="11.0.269" />
<PackageVersion Include="Soenneker.Cursor.CloudAgents.OpenApiClientUtil" Version="11.0.269" />
<PackageReference Include="Soenneker.Cursor.CloudAgents.OpenApiClientUtil" />
paket add Soenneker.Cursor.CloudAgents.OpenApiClientUtil --version 11.0.269
#r "nuget: Soenneker.Cursor.CloudAgents.OpenApiClientUtil, 11.0.269"
#:package Soenneker.Cursor.CloudAgents.OpenApiClientUtil@11.0.269
#addin nuget:?package=Soenneker.Cursor.CloudAgents.OpenApiClientUtil&version=11.0.269
#tool nuget:?package=Soenneker.Cursor.CloudAgents.OpenApiClientUtil&version=11.0.269
Soenneker.Cursor.CloudAgents.OpenApiClientUtil
Provides a lazily created, cached Cursor Cloud Agents client backed by Soenneker.Cursor.CloudAgents.HttpClients.
Installation
dotnet add package Soenneker.Cursor.CloudAgents.OpenApiClientUtil
Configuration and registration
{
"Cursor": {
"ApiKey": "your-cursor-api-key"
}
}
using Soenneker.Cursor.CloudAgents.OpenApiClientUtil.Registrars;
services.AddCursorCloudAgentsOpenApiClientUtilAsScoped();
Use AddCursorCloudAgentsOpenApiClientUtilAsSingleton() when the application should share one generated client.
Usage
using Soenneker.Cursor.CloudAgents.OpenApiClientUtil.Abstract;
public sealed class CursorAccountReader(ICursorCloudAgentsOpenApiClientUtil clients)
{
public async Task Read(CancellationToken cancellationToken)
{
var client = await clients.Get(cancellationToken);
var keyInfo = await client.V1.Me.GetAsync(cancellationToken: cancellationToken);
}
}
Each utility instance caches one generated client. Both registrations use a singleton HTTP provider, so disposing a scoped utility does not remove the shared HttpClient; the provider owns and disposes it when the application container shuts down.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Cursor.CloudAgents.HttpClients (>= 11.0.203)
- Soenneker.Cursor.CloudAgents.OpenApiClient (>= 11.0.100)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.269 | 67 | 12/3/2026 |
| 11.0.268 | 61 | 12/3/2026 |
| 11.0.267 | 83 | 12/3/2026 |
| 11.0.266 | 76 | 12/3/2026 |
| 11.0.265 | 71 | 12/3/2026 |
| 11.0.264 | 81 | 12/3/2026 |
| 11.0.263 | 72 | 12/2/2026 |
| 11.0.261 | 83 | 12/2/2026 |
| 11.0.260 | 90 | 12/2/2026 |
| 11.0.259 | 90 | 12/2/2026 |
| 11.0.258 | 88 | 12/2/2026 |
| 11.0.257 | 79 | 12/1/2026 |
| 11.0.256 | 90 | 12/1/2026 |
| 11.0.255 | 90 | 12/1/2026 |
| 11.0.254 | 88 | 12/1/2026 |
| 11.0.253 | 86 | 12/1/2026 |
| 11.0.252 | 93 | 11/30/2026 |
| 11.0.251 | 100 | 11/30/2026 |
| 11.0.250 | 102 | 11/30/2026 |
| 11.0.249 | 106 | 11/26/2026 |
Updated Multiple NuGet packages