Soenneker.GitHub.ClientUtil
11.0.759
Prefix Reserved
dotnet add package Soenneker.GitHub.ClientUtil --version 11.0.759
NuGet\Install-Package Soenneker.GitHub.ClientUtil -Version 11.0.759
<PackageReference Include="Soenneker.GitHub.ClientUtil" Version="11.0.759" />
<PackageVersion Include="Soenneker.GitHub.ClientUtil" Version="11.0.759" />
<PackageReference Include="Soenneker.GitHub.ClientUtil" />
paket add Soenneker.GitHub.ClientUtil --version 11.0.759
#r "nuget: Soenneker.GitHub.ClientUtil, 11.0.759"
#:package Soenneker.GitHub.ClientUtil@11.0.759
#addin nuget:?package=Soenneker.GitHub.ClientUtil&version=11.0.759
#tool nuget:?package=Soenneker.GitHub.ClientUtil&version=11.0.759
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.GitHub.Client.Http (>= 11.0.1540)
- Soenneker.GitHub.OpenApiClient (>= 11.0.292)
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.759 | 0 | 11/3/2026 |
| 11.0.758 | 0 | 11/3/2026 |
| 11.0.757 | 0 | 11/2/2026 |
| 11.0.756 | 0 | 11/2/2026 |
| 11.0.755 | 0 | 11/2/2026 |
| 11.0.754 | 0 | 11/2/2026 |
| 11.0.753 | 0 | 11/2/2026 |
| 11.0.752 | 110 | 11/2/2026 |
| 11.0.751 | 1,435 | 10/31/2026 |
| 11.0.750 | 142 | 10/31/2026 |
| 11.0.749 | 120 | 10/30/2026 |
| 11.0.748 | 1,514 | 10/30/2026 |
| 11.0.747 | 2,066 | 10/29/2026 |
| 11.0.746 | 2,819 | 10/27/2026 |
| 11.0.745 | 1,620 | 10/27/2026 |
| 11.0.744 | 978 | 10/27/2026 |
| 11.0.743 | 160 | 10/26/2026 |
| 11.0.742 | 194 | 10/26/2026 |
| 11.0.741 | 748 | 10/26/2026 |
| 11.0.740 | 385 | 10/26/2026 |
Updated Soenneker.GitHub.Client.Http to 11.0.1540