Soenneker.SendGrid.Client.Validation
11.0.2415
Prefix Reserved
dotnet add package Soenneker.SendGrid.Client.Validation --version 11.0.2415
NuGet\Install-Package Soenneker.SendGrid.Client.Validation -Version 11.0.2415
<PackageReference Include="Soenneker.SendGrid.Client.Validation" Version="11.0.2415" />
<PackageVersion Include="Soenneker.SendGrid.Client.Validation" Version="11.0.2415" />
<PackageReference Include="Soenneker.SendGrid.Client.Validation" />
paket add Soenneker.SendGrid.Client.Validation --version 11.0.2415
#r "nuget: Soenneker.SendGrid.Client.Validation, 11.0.2415"
#:package Soenneker.SendGrid.Client.Validation@11.0.2415
#addin nuget:?package=Soenneker.SendGrid.Client.Validation&version=11.0.2415
#tool nuget:?package=Soenneker.SendGrid.Client.Validation&version=11.0.2415
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 | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.917)
- Soenneker.Utils.HttpClientCache (>= 11.0.2152)
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 |
|---|---|---|
| 11.0.2415 | 89 | 11/11/2026 |
| 11.0.2414 | 61 | 11/11/2026 |
| 11.0.2413 | 56 | 11/11/2026 |
| 11.0.2412 | 45 | 11/11/2026 |
| 11.0.2411 | 51 | 11/11/2026 |
| 11.0.2410 | 66 | 11/11/2026 |
| 11.0.2409 | 1,155 | 11/3/2026 |
| 11.0.2408 | 102 | 11/3/2026 |
| 11.0.2407 | 119 | 11/3/2026 |
| 11.0.2406 | 116 | 11/3/2026 |
| 11.0.2405 | 124 | 11/3/2026 |
| 11.0.2404 | 169 | 10/27/2026 |
| 11.0.2403 | 142 | 10/27/2026 |
| 11.0.2402 | 117 | 10/26/2026 |
| 11.0.2401 | 95 | 10/26/2026 |
| 11.0.2400 | 119 | 10/26/2026 |
| 11.0.2399 | 95 | 10/26/2026 |
| 11.0.2398 | 114 | 10/26/2026 |
| 11.0.2397 | 101 | 10/26/2026 |
| 11.0.2396 | 100 | 10/26/2026 |
Updated Soenneker.Utils.HttpClientCache to 11.0.2152