Soenneker.SendGrid.Validation
11.0.1862
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.SendGrid.Validation --version 11.0.1862
NuGet\Install-Package Soenneker.SendGrid.Validation -Version 11.0.1862
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.SendGrid.Validation" Version="11.0.1862" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.SendGrid.Validation" Version="11.0.1862" />
<PackageReference Include="Soenneker.SendGrid.Validation" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.SendGrid.Validation --version 11.0.1862
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.SendGrid.Validation, 11.0.1862"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.SendGrid.Validation@11.0.1862
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.SendGrid.Validation&version=11.0.1862
#tool nuget:?package=Soenneker.SendGrid.Validation&version=11.0.1862
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- Soenneker.Extensions.HttpClient (>= 11.0.4188)
- Soenneker.SendGrid.Client.Validation (>= 11.0.2413)
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.1878 | 104 | 11/19/2026 |
| 11.0.1877 | 94 | 11/19/2026 |
| 11.0.1875 | 95 | 11/18/2026 |
| 11.0.1874 | 95 | 11/18/2026 |
| 11.0.1873 | 95 | 11/18/2026 |
| 11.0.1872 | 104 | 11/16/2026 |
| 11.0.1871 | 99 | 11/15/2026 |
| 11.0.1870 | 106 | 11/15/2026 |
| 11.0.1869 | 106 | 11/15/2026 |
| 11.0.1868 | 104 | 11/15/2026 |
| 11.0.1867 | 162 | 11/11/2026 |
| 11.0.1865 | 111 | 11/11/2026 |
| 11.0.1864 | 106 | 11/11/2026 |
| 11.0.1863 | 110 | 11/11/2026 |
| 11.0.1862 | 103 | 11/11/2026 |
| 11.0.1861 | 125 | 11/11/2026 |
| 11.0.1860 | 110 | 11/11/2026 |
| 11.0.1858 | 1,316 | 11/4/2026 |
| 11.0.1857 | 134 | 11/3/2026 |
| 11.0.1856 | 111 | 11/3/2026 |
Loading failed
Updated Multiple NuGet packages