Soenneker.GitHub.ClientUtil
11.0.783
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.ClientUtil --version 11.0.783
NuGet\Install-Package Soenneker.GitHub.ClientUtil -Version 11.0.783
<PackageReference Include="Soenneker.GitHub.ClientUtil" Version="11.0.783" />
<PackageVersion Include="Soenneker.GitHub.ClientUtil" Version="11.0.783" />
<PackageReference Include="Soenneker.GitHub.ClientUtil" />
paket add Soenneker.GitHub.ClientUtil --version 11.0.783
#r "nuget: Soenneker.GitHub.ClientUtil, 11.0.783"
#:package Soenneker.GitHub.ClientUtil@11.0.783
#addin nuget:?package=Soenneker.GitHub.ClientUtil&version=11.0.783
#tool nuget:?package=Soenneker.GitHub.ClientUtil&version=11.0.783
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.1559)
- Soenneker.GitHub.OpenApiClient (>= 11.0.303)
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.785 | 50 | 11/14/2026 |
| 11.0.784 | 736 | 11/13/2026 |
| 11.0.783 | 783 | 11/12/2026 |
| 11.0.782 | 455 | 11/11/2026 |
| 11.0.781 | 641 | 11/11/2026 |
| 11.0.780 | 728 | 11/11/2026 |
| 11.0.779 | 435 | 11/11/2026 |
| 11.0.778 | 499 | 11/11/2026 |
| 11.0.777 | 548 | 11/11/2026 |
| 11.0.776 | 720 | 11/11/2026 |
| 11.0.775 | 761 | 11/11/2026 |
| 11.0.774 | 123 | 11/11/2026 |
| 11.0.773 | 198 | 11/11/2026 |
| 11.0.772 | 2,946 | 11/10/2026 |
| 11.0.771 | 1,551 | 11/9/2026 |
| 11.0.770 | 1,223 | 11/7/2026 |
| 11.0.769 | 1,184 | 11/7/2026 |
| 11.0.768 | 1,466 | 11/6/2026 |
| 11.0.767 | 1,221 | 11/4/2026 |
| 11.0.766 | 1,273 | 11/3/2026 |
Updated Soenneker.GitHub.OpenApiClient to 11.0.303