Soenneker.GitHub.ClientUtil
4.0.645
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.ClientUtil --version 4.0.645
NuGet\Install-Package Soenneker.GitHub.ClientUtil -Version 4.0.645
<PackageReference Include="Soenneker.GitHub.ClientUtil" Version="4.0.645" />
<PackageVersion Include="Soenneker.GitHub.ClientUtil" Version="4.0.645" />
<PackageReference Include="Soenneker.GitHub.ClientUtil" />
paket add Soenneker.GitHub.ClientUtil --version 4.0.645
#r "nuget: Soenneker.GitHub.ClientUtil, 4.0.645"
#:package Soenneker.GitHub.ClientUtil@4.0.645
#addin nuget:?package=Soenneker.GitHub.ClientUtil&version=4.0.645
#tool nuget:?package=Soenneker.GitHub.ClientUtil&version=4.0.645
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.1436)
- Soenneker.GitHub.OpenApiClient (>= 4.0.236)
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.647 | 2,060 | 9/5/2026 |
| 4.0.646 | 165 | 9/5/2026 |
| 4.0.645 | 914 | 9/5/2026 |
| 4.0.644 | 2,061 | 9/4/2026 |
| 4.0.643 | 117 | 9/4/2026 |
| 4.0.642 | 92 | 9/4/2026 |
| 4.0.641 | 1,038 | 9/4/2026 |
| 4.0.640 | 6,824 | 9/4/2026 |
| 4.0.639 | 142 | 9/4/2026 |
| 4.0.638 | 1,710 | 9/4/2026 |
| 4.0.637 | 79 | 9/4/2026 |
| 4.0.636 | 245 | 9/4/2026 |
| 4.0.635 | 1,385 | 9/3/2026 |
| 4.0.634 | 170 | 9/3/2026 |
| 4.0.633 | 1,057 | 9/3/2026 |
| 4.0.632 | 219 | 9/3/2026 |
| 4.0.631 | 156 | 9/3/2026 |
| 4.0.630 | 3,119 | 9/1/2026 |
| 4.0.629 | 661 | 9/1/2026 |
| 4.0.628 | 510 | 9/1/2026 |
Update dependency Soenneker.GitHub.Client.Http to 4.0.1436 (#1158)