Soenneker.GitHub.ClientUtil
4.0.703
Prefix Reserved
dotnet add package Soenneker.GitHub.ClientUtil --version 4.0.703
NuGet\Install-Package Soenneker.GitHub.ClientUtil -Version 4.0.703
<PackageReference Include="Soenneker.GitHub.ClientUtil" Version="4.0.703" />
<PackageVersion Include="Soenneker.GitHub.ClientUtil" Version="4.0.703" />
<PackageReference Include="Soenneker.GitHub.ClientUtil" />
paket add Soenneker.GitHub.ClientUtil --version 4.0.703
#r "nuget: Soenneker.GitHub.ClientUtil, 4.0.703"
#:package Soenneker.GitHub.ClientUtil@4.0.703
#addin nuget:?package=Soenneker.GitHub.ClientUtil&version=4.0.703
#tool nuget:?package=Soenneker.GitHub.ClientUtil&version=4.0.703
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 | 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. |
-
net10.0
- Soenneker.GitHub.Client.Http (>= 4.0.1496)
- Soenneker.GitHub.OpenApiClient (>= 4.0.259)
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 |
|---|---|---|
| 4.0.703 | 0 | 10/2/2026 |
| 4.0.702 | 716 | 10/1/2026 |
| 4.0.701 | 1,100 | 10/1/2026 |
| 4.0.700 | 2,821 | 9/29/2026 |
| 4.0.699 | 1,117 | 9/29/2026 |
| 4.0.698 | 279 | 9/29/2026 |
| 4.0.697 | 3,063 | 9/29/2026 |
| 4.0.696 | 3,127 | 9/26/2026 |
| 4.0.695 | 1,235 | 9/25/2026 |
| 4.0.694 | 1,236 | 9/25/2026 |
| 4.0.693 | 274 | 9/24/2026 |
| 4.0.692 | 317 | 9/24/2026 |
| 4.0.691 | 456 | 9/24/2026 |
| 4.0.690 | 3,798 | 9/23/2026 |
| 4.0.689 | 2,104 | 9/21/2026 |
| 4.0.688 | 2,795 | 9/19/2026 |
| 4.0.687 | 1,167 | 9/18/2026 |
| 4.0.686 | 996 | 9/17/2026 |
| 4.0.685 | 1,128 | 9/17/2026 |
| 4.0.684 | 252 | 9/16/2026 |
Update dependency Soenneker.GitHub.OpenApiClient to 4.0.259 (#1232)