Soenneker.SendGrid.Client.Validation
4.0.2323
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.SendGrid.Client.Validation --version 4.0.2323
NuGet\Install-Package Soenneker.SendGrid.Client.Validation -Version 4.0.2323
<PackageReference Include="Soenneker.SendGrid.Client.Validation" Version="4.0.2323" />
<PackageVersion Include="Soenneker.SendGrid.Client.Validation" Version="4.0.2323" />
<PackageReference Include="Soenneker.SendGrid.Client.Validation" />
paket add Soenneker.SendGrid.Client.Validation --version 4.0.2323
#r "nuget: Soenneker.SendGrid.Client.Validation, 4.0.2323"
#:package Soenneker.SendGrid.Client.Validation@4.0.2323
#addin nuget:?package=Soenneker.SendGrid.Client.Validation&version=4.0.2323
#tool nuget:?package=Soenneker.SendGrid.Client.Validation&version=4.0.2323
Soenneker.SendGrid.Client.Validation
Provides a cached, authenticated HttpClient for SendGrid Email Address Validation.
Installation
dotnet add package Soenneker.SendGrid.Client.Validation
Configuration
{
"SendGrid": {
"ValidationApiKey": "SG.xxxxxxxxx"
}
}
Usage
using System.Net.Http.Json;
using Soenneker.SendGrid.Client.Validation.Abstract;
using Soenneker.SendGrid.Client.Validation.Registrars;
services.AddSendGridValidationClientUtilAsSingleton();
public sealed class EmailAddressValidator
{
private readonly ISendGridValidationClientUtil _sendGrid;
public EmailAddressValidator(ISendGridValidationClientUtil sendGrid)
{
_sendGrid = sendGrid;
}
public async Task<HttpResponseMessage> Validate(
string email,
CancellationToken cancellationToken)
{
HttpClient client = await _sendGrid.Get(cancellationToken);
return await client.PostAsJsonAsync(
"v3/validations/email",
new { email },
cancellationToken);
}
}
The provider sends SendGrid:ValidationApiKey as a bearer token. The key must have access to Email Address Validation. Set SendGrid:ValidationClientBaseUrl only when routing through a proxy or compatible endpoint. The caller owns each returned HttpResponseMessage and should dispose it after reading the response.
| 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.Extensions.Configuration (>= 4.0.872)
- Soenneker.Utils.HttpClientCache (>= 4.0.2058)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.SendGrid.Client.Validation:
| Package | Downloads |
|---|---|
|
Soenneker.SendGrid.Validation
Validates email addresses through SendGrid with an explicit fail-open verdict policy. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.2327 | 0 | 9/5/2026 |
| 4.0.2326 | 5 | 9/5/2026 |
| 4.0.2325 | 53 | 9/4/2026 |
| 4.0.2324 | 51 | 9/4/2026 |
| 4.0.2323 | 51 | 9/4/2026 |
| 4.0.2322 | 37 | 9/4/2026 |
| 4.0.2321 | 47 | 9/4/2026 |
| 4.0.2318 | 69 | 9/3/2026 |
| 4.0.2317 | 106 | 9/1/2026 |
| 4.0.2316 | 99 | 8/31/2026 |
| 4.0.2315 | 117 | 8/31/2026 |
| 4.0.2314 | 74 | 8/31/2026 |
| 4.0.2313 | 98 | 8/31/2026 |
| 4.0.2312 | 85 | 8/31/2026 |
| 4.0.2311 | 78 | 8/31/2026 |
| 4.0.2310 | 72 | 8/31/2026 |
| 4.0.2309 | 109 | 8/31/2026 |
| 4.0.2308 | 82 | 8/30/2026 |
| 4.0.2307 | 78 | 8/30/2026 |
| 4.0.2306 | 72 | 8/30/2026 |
Updated Soenneker.Utils.HttpClientCache to 4.0.2058