Soenneker.GitHub.ClientUtil 4.0.739

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.GitHub.ClientUtil --version 4.0.739
                    
NuGet\Install-Package Soenneker.GitHub.ClientUtil -Version 4.0.739
                    
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.GitHub.ClientUtil" Version="4.0.739" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.ClientUtil" Version="4.0.739" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.GitHub.ClientUtil" />
                    
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.GitHub.ClientUtil --version 4.0.739
                    
#r "nuget: Soenneker.GitHub.ClientUtil, 4.0.739"
                    
#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.GitHub.ClientUtil@4.0.739
                    
#: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.GitHub.ClientUtil&version=4.0.739
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.ClientUtil&version=4.0.739
                    
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.GitHub.ClientUtil

Provides lazy, cached access to the generated GitHub REST API client over an authenticated shared transport.

Installation

dotnet add package Soenneker.GitHub.ClientUtil

Configure and register

{
  "GH": {
    "Token": "your-github-token"
  }
}
using Soenneker.GitHub.ClientUtil.Registrars;

services.AddGitHubOpenApiClientUtilAsScoped();

Use the client

using Soenneker.GitHub.ClientUtil.Abstract;

public sealed class GitHubUserReader(IGitHubOpenApiClientUtil clients)
{
    public async Task Read(CancellationToken cancellationToken)
    {
        var client = await clients.Get(cancellationToken);
        var user = await client.User.GetAsync(
            cancellationToken: cancellationToken);
    }
}

The HTTP provider supplies the bearer token and required GitHub headers. The generated client therefore uses anonymous Kiota authentication and does not add a duplicate Authorization value.

Use AddGitHubOpenApiClientUtilAsSingleton() when the application should share one generated client. A scoped utility borrows the singleton HTTP provider, so disposing the scope does not destroy the shared transport.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Soenneker.GitHub.ClientUtil:

Package Downloads
Soenneker.GitHub.Repositories.Tags

Creates, inspects, compares, and deletes GitHub repository tags

Soenneker.GitHub.Repositories

Creates, discovers, configures, and deletes GitHub repositories.

Soenneker.GitHub.Repositories.Secrets

Lists and manages GitHub Actions repository secrets

Soenneker.GitHub.Repositories.Readmes

Creates and replaces README.md files on GitHub repository branches

Soenneker.GitHub.Repositories.Pages

Reads, creates, updates, and deletes GitHub Pages site configuration.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.799 240 11/21/2026
11.0.798 1,439 11/19/2026
11.0.797 237 11/19/2026
11.0.796 299 11/18/2026
11.0.795 360 11/18/2026
11.0.792 2,211 11/18/2026
11.0.791 1,595 11/17/2026
11.0.790 484 11/17/2026
11.0.789 1,691 11/15/2026
11.0.788 176 11/15/2026
11.0.787 545 11/15/2026
11.0.786 1,690 11/15/2026
11.0.785 1,274 11/14/2026
11.0.784 1,699 11/13/2026
11.0.783 904 11/12/2026
11.0.782 549 11/11/2026
11.0.781 733 11/11/2026
11.0.780 825 11/11/2026
11.0.779 543 11/11/2026
4.0.739 870 10/26/2026
Loading failed

Update dependency Soenneker.GitHub.Client.Http to 4.0.1529 (#1281)