Soenneker.SendGrid.OpenApiClientUtil
4.0.184
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.SendGrid.OpenApiClientUtil --version 4.0.184
NuGet\Install-Package Soenneker.SendGrid.OpenApiClientUtil -Version 4.0.184
<PackageReference Include="Soenneker.SendGrid.OpenApiClientUtil" Version="4.0.184" />
<PackageVersion Include="Soenneker.SendGrid.OpenApiClientUtil" Version="4.0.184" />
<PackageReference Include="Soenneker.SendGrid.OpenApiClientUtil" />
paket add Soenneker.SendGrid.OpenApiClientUtil --version 4.0.184
#r "nuget: Soenneker.SendGrid.OpenApiClientUtil, 4.0.184"
#:package Soenneker.SendGrid.OpenApiClientUtil@4.0.184
#addin nuget:?package=Soenneker.SendGrid.OpenApiClientUtil&version=4.0.184
#tool nuget:?package=Soenneker.SendGrid.OpenApiClientUtil&version=4.0.184
Soenneker.SendGrid.OpenApiClientUtil
Provides a lazily initialized SendGrid client for mail, contacts, lists, templates, suppressions, statistics, settings, webhooks, API keys, and account resources.
Installation
dotnet add package Soenneker.SendGrid.OpenApiClientUtil
Configuration
{
"SendGrid": {
"ApiKey": "SG.xxxxxxxxx"
}
}
Usage
using Soenneker.SendGrid.OpenApiClientUtil.Abstract;
using Soenneker.SendGrid.OpenApiClientUtil.Registrars;
services.AddSendGridOpenApiClientUtilAsSingleton();
public sealed class SendGridScopeReader
{
private readonly ISendGridOpenApiClientUtil _sendGrid;
public SendGridScopeReader(ISendGridOpenApiClientUtil sendGrid)
{
_sendGrid = sendGrid;
}
public async Task GetScopes(CancellationToken cancellationToken)
{
var client = await _sendGrid.Get(cancellationToken);
var scopes = await client.Tsg_scopes_v3.V3.Scopes
.WithUrl("https://api.sendgrid.com/v3/scopes")
.GetAsync(cancellationToken: cancellationToken);
}
}
The source schema's tsg_* group names appear in generated URL templates even though they are not public SendGrid route segments. Use WithUrl with the documented https://api.sendgrid.com/v3/... endpoint for these builders.
Use AddSendGridOpenApiClientUtilAsScoped() when each scope should have its own lazily initialized generated client. Both registrations reuse the singleton authenticated HTTP client provider.
| 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.SendGrid.HttpClients (>= 4.0.139)
- Soenneker.SendGrid.OpenApiClient (>= 4.0.49)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.SendGrid.OpenApiClientUtil:
| Package | Downloads |
|---|---|
|
Soenneker.SendGrid.Contacts
Adds, retrieves, searches, and deletes SendGrid Marketing contacts. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.212 | 0 | 11/2/2026 |
| 11.0.211 | 0 | 11/2/2026 |
| 11.0.210 | 53 | 10/31/2026 |
| 11.0.209 | 56 | 10/31/2026 |
| 11.0.208 | 62 | 10/30/2026 |
| 11.0.207 | 81 | 10/29/2026 |
| 11.0.206 | 105 | 10/28/2026 |
| 11.0.205 | 99 | 10/27/2026 |
| 11.0.204 | 98 | 10/27/2026 |
| 11.0.203 | 85 | 10/27/2026 |
| 11.0.202 | 84 | 10/27/2026 |
| 11.0.201 | 84 | 10/27/2026 |
| 11.0.199 | 90 | 10/26/2026 |
| 11.0.198 | 92 | 10/26/2026 |
| 4.0.197 | 95 | 10/25/2026 |
| 4.0.196 | 101 | 10/15/2026 |
| 4.0.195 | 85 | 10/14/2026 |
| 4.0.194 | 90 | 10/14/2026 |
| 4.0.191 | 87 | 10/14/2026 |
| 4.0.184 | 84 | 10/13/2026 |