Soenneker.Grafana.OpenApiClientUtil
11.0.268
Prefix Reserved
dotnet add package Soenneker.Grafana.OpenApiClientUtil --version 11.0.268
NuGet\Install-Package Soenneker.Grafana.OpenApiClientUtil -Version 11.0.268
<PackageReference Include="Soenneker.Grafana.OpenApiClientUtil" Version="11.0.268" />
<PackageVersion Include="Soenneker.Grafana.OpenApiClientUtil" Version="11.0.268" />
<PackageReference Include="Soenneker.Grafana.OpenApiClientUtil" />
paket add Soenneker.Grafana.OpenApiClientUtil --version 11.0.268
#r "nuget: Soenneker.Grafana.OpenApiClientUtil, 11.0.268"
#:package Soenneker.Grafana.OpenApiClientUtil@11.0.268
#addin nuget:?package=Soenneker.Grafana.OpenApiClientUtil&version=11.0.268
#tool nuget:?package=Soenneker.Grafana.OpenApiClientUtil&version=11.0.268
Soenneker.Grafana.OpenApiClientUtil
Reuse a configured GrafanaOpenApiClient throughout an application without rebuilding the Kiota adapter for each request.
Installation
dotnet add package Soenneker.Grafana.OpenApiClientUtil
Configuration
{
"Grafana": {
"ApiKey": "grafana-service-account-token",
"ClientBaseUrl": "https://grafana.example.com/api"
}
}
ClientBaseUrl is required and must include Grafana's /api root. Custom authentication header settings are inherited from Soenneker.Grafana.HttpClients.
Registration
services.AddGrafanaOpenApiClientUtilAsSingleton();
Use AddGrafanaOpenApiClientUtilAsScoped() when the consumer should be scoped. The scoped utility still uses the singleton HTTP provider; disposing a scope releases its cached OpenAPI wrapper without removing the shared authenticated transport.
Usage
public sealed class GrafanaService
{
private readonly IGrafanaOpenApiClientUtil _clients;
public GrafanaService(IGrafanaOpenApiClientUtil clients)
{
_clients = clients;
}
public ValueTask<GrafanaOpenApiClient> GetClient(
CancellationToken cancellationToken = default)
{
return _clients.Get(cancellationToken);
}
}
Get returns the same generated client for the lifetime of the utility. Authentication is supplied by the underlying HTTP provider, so the Kiota adapter does not add a second authorization header.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Grafana.HttpClients (>= 11.0.194)
- Soenneker.Grafana.OpenApiClient (>= 11.0.95)
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.268 | 64 | 12/3/2026 |
| 11.0.267 | 56 | 12/3/2026 |
| 11.0.266 | 60 | 12/3/2026 |
| 11.0.265 | 58 | 12/3/2026 |
| 11.0.264 | 64 | 12/3/2026 |
| 11.0.263 | 56 | 12/3/2026 |
| 11.0.262 | 51 | 12/2/2026 |
| 11.0.261 | 58 | 12/2/2026 |
| 11.0.260 | 57 | 12/2/2026 |
| 11.0.258 | 60 | 12/2/2026 |
| 11.0.257 | 60 | 12/2/2026 |
| 11.0.256 | 78 | 12/1/2026 |
| 11.0.255 | 78 | 12/1/2026 |
| 11.0.254 | 81 | 12/1/2026 |
| 11.0.253 | 77 | 12/1/2026 |
| 11.0.252 | 78 | 12/1/2026 |
| 11.0.251 | 93 | 12/1/2026 |
| 11.0.250 | 94 | 11/30/2026 |
| 11.0.249 | 93 | 11/30/2026 |
| 11.0.248 | 93 | 11/30/2026 |
Updated Multiple NuGet packages