Soenneker.SendGrid.Validation
11.0.1867
Prefix Reserved
dotnet add package Soenneker.SendGrid.Validation --version 11.0.1867
NuGet\Install-Package Soenneker.SendGrid.Validation -Version 11.0.1867
<PackageReference Include="Soenneker.SendGrid.Validation" Version="11.0.1867" />
<PackageVersion Include="Soenneker.SendGrid.Validation" Version="11.0.1867" />
<PackageReference Include="Soenneker.SendGrid.Validation" />
paket add Soenneker.SendGrid.Validation --version 11.0.1867
#r "nuget: Soenneker.SendGrid.Validation, 11.0.1867"
#:package Soenneker.SendGrid.Validation@11.0.1867
#addin nuget:?package=Soenneker.SendGrid.Validation&version=11.0.1867
#tool nuget:?package=Soenneker.SendGrid.Validation&version=11.0.1867
Soenneker.SendGrid.Validation
Returns SendGrid's detailed email-address validation result or a simplified fail-open verdict.
Installation
dotnet add package Soenneker.SendGrid.Validation
Configuration
{
"SendGrid": {
"ValidationApiKey": "SG.xxxxxxxxx",
"Validation": {
"Enabled": true,
"LogEnabled": false
}
}
}
Usage
using Soenneker.SendGrid.Validation.Abstract;
using Soenneker.SendGrid.Validation.Registrars;
services.AddSendGridValidationUtilAsSingleton();
public sealed class SignupValidator
{
private readonly ISendGridValidationUtil _validation;
public SignupValidator(ISendGridValidationUtil validation)
{
_validation = validation;
}
public ValueTask<bool> Accept(
string email,
CancellationToken cancellationToken)
{
return _validation.GetVerdict(
email,
source: "signup",
cancellationToken: cancellationToken);
}
}
Validate returns the full SendGrid response, or null when validation is disabled, the API fails after retries, or no result is returned. GetVerdict returns false only when SendGrid explicitly returns a verdict other than Valid; disabled or unavailable validation returns true. Requested cancellation is propagated rather than treated as a passing verdict.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.HttpClient (>= 11.0.4197)
- Soenneker.SendGrid.Client.Validation (>= 11.0.2415)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.1867 | 93 | 11/11/2026 |
| 11.0.1865 | 75 | 11/11/2026 |
| 11.0.1864 | 66 | 11/11/2026 |
| 11.0.1863 | 72 | 11/11/2026 |
| 11.0.1862 | 69 | 11/11/2026 |
| 11.0.1861 | 99 | 11/11/2026 |
| 11.0.1860 | 84 | 11/11/2026 |
| 11.0.1858 | 1,304 | 11/4/2026 |
| 11.0.1857 | 120 | 11/3/2026 |
| 11.0.1856 | 102 | 11/3/2026 |
| 11.0.1855 | 103 | 11/3/2026 |
| 11.0.1854 | 96 | 11/3/2026 |
| 11.0.1853 | 104 | 11/3/2026 |
| 11.0.1852 | 83 | 11/3/2026 |
| 11.0.1851 | 90 | 11/3/2026 |
| 11.0.1850 | 90 | 11/3/2026 |
| 11.0.1849 | 96 | 11/3/2026 |
| 11.0.1848 | 96 | 11/3/2026 |
| 11.0.1846 | 153 | 10/29/2026 |
| 11.0.1845 | 99 | 10/29/2026 |
Updated Soenneker.Extensions.HttpClient to 11.0.4197