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
                    
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.Grafana.OpenApiClientUtil" Version="11.0.268" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Grafana.OpenApiClientUtil" Version="11.0.268" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Grafana.OpenApiClientUtil" />
                    
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.Grafana.OpenApiClientUtil --version 11.0.268
                    
#r "nuget: Soenneker.Grafana.OpenApiClientUtil, 11.0.268"
                    
#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.Grafana.OpenApiClientUtil@11.0.268
                    
#: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.Grafana.OpenApiClientUtil&version=11.0.268
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Grafana.OpenApiClientUtil&version=11.0.268
                    
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

alternate text is missing from this package README image 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 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

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
Loading failed

Updated Multiple NuGet packages