Soenneker.GitLab.OpenApiClientUtil 11.0.372

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

Reuse a configured GitLabOpenApiClient throughout an application without rebuilding the Kiota adapter for each request.

Installation

dotnet add package Soenneker.GitLab.OpenApiClientUtil

Configuration

{
  "GitLab": {
    "ApiKey": "gitlab-token"
  }
}

GitLab.com is used by default. Self-managed host and custom-header settings are inherited from Soenneker.GitLab.HttpClients:

{
  "GitLab": {
    "ApiKey": "gitlab-token",
    "ClientBaseUrl": "https://gitlab.example.com/",
    "AuthHeaderName": "PRIVATE-TOKEN",
    "AuthHeaderValueTemplate": "{token}"
  }
}

Registration

services.AddGitLabOpenApiClientUtilAsSingleton();

Use AddGitLabOpenApiClientUtilAsScoped() 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 GitLabService
{
    private readonly IGitLabOpenApiClientUtil _clients;

    public GitLabService(IGitLabOpenApiClientUtil clients)
    {
        _clients = clients;
    }

    public async ValueTask<GitLabOpenApiClient> GetClient(
        CancellationToken cancellationToken = default)
    {
        return await _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.372 45 12/5/2026
11.0.371 53 12/3/2026
11.0.370 52 12/3/2026
11.0.369 62 12/3/2026
11.0.368 64 12/3/2026
11.0.367 71 12/2/2026
11.0.366 77 12/2/2026
11.0.365 66 12/2/2026
11.0.364 61 12/2/2026
11.0.363 75 12/2/2026
11.0.362 66 12/2/2026
11.0.361 74 12/2/2026
11.0.360 86 12/2/2026
11.0.359 87 12/2/2026
11.0.358 83 12/2/2026
11.0.357 82 12/1/2026
11.0.356 80 12/1/2026
11.0.355 94 12/1/2026
11.0.354 85 12/1/2026
11.0.353 88 12/1/2026
Loading failed

Update dependency Soenneker.GitLab.OpenApiClient to 11.0.221 (#475)