Soenneker.SendGrid.OpenApiClientUtil
11.0.255
Prefix Reserved
dotnet add package Soenneker.SendGrid.OpenApiClientUtil --version 11.0.255
NuGet\Install-Package Soenneker.SendGrid.OpenApiClientUtil -Version 11.0.255
<PackageReference Include="Soenneker.SendGrid.OpenApiClientUtil" Version="11.0.255" />
<PackageVersion Include="Soenneker.SendGrid.OpenApiClientUtil" Version="11.0.255" />
<PackageReference Include="Soenneker.SendGrid.OpenApiClientUtil" />
paket add Soenneker.SendGrid.OpenApiClientUtil --version 11.0.255
#r "nuget: Soenneker.SendGrid.OpenApiClientUtil, 11.0.255"
#:package Soenneker.SendGrid.OpenApiClientUtil@11.0.255
#addin nuget:?package=Soenneker.SendGrid.OpenApiClientUtil&version=11.0.255
#tool nuget:?package=Soenneker.SendGrid.OpenApiClientUtil&version=11.0.255
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 | net11.0 is compatible. |
-
net11.0
- Soenneker.SendGrid.HttpClients (>= 11.0.201)
- Soenneker.SendGrid.OpenApiClient (>= 11.0.80)
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.255 | 52 | 12/3/2026 |
| 11.0.254 | 75 | 12/3/2026 |
| 11.0.253 | 84 | 12/3/2026 |
| 11.0.252 | 85 | 12/3/2026 |
| 11.0.251 | 78 | 12/3/2026 |
| 11.0.250 | 87 | 12/3/2026 |
| 11.0.249 | 73 | 12/2/2026 |
| 11.0.248 | 79 | 12/2/2026 |
| 11.0.245 | 105 | 12/2/2026 |
| 11.0.244 | 96 | 12/2/2026 |
| 11.0.243 | 96 | 12/2/2026 |
| 11.0.242 | 88 | 12/2/2026 |
| 11.0.241 | 103 | 12/1/2026 |
| 11.0.240 | 94 | 12/1/2026 |
| 11.0.239 | 104 | 12/1/2026 |
| 11.0.238 | 125 | 12/1/2026 |
| 11.0.237 | 94 | 12/1/2026 |
| 11.0.236 | 124 | 12/1/2026 |
| 11.0.235 | 93 | 11/30/2026 |
| 11.0.234 | 132 | 11/30/2026 |
Updated Multiple NuGet packages