Soenneker.SendGrid.Validation 4.0.1710

Prefix Reserved
dotnet add package Soenneker.SendGrid.Validation --version 4.0.1710
                    
NuGet\Install-Package Soenneker.SendGrid.Validation -Version 4.0.1710
                    
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="4.0.1710" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.SendGrid.Validation" Version="4.0.1710" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.SendGrid.Validation" />
                    
Project file
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 4.0.1710
                    
#r "nuget: Soenneker.SendGrid.Validation, 4.0.1710"
                    
#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@4.0.1710
                    
#: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=4.0.1710
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.Validation&version=4.0.1710
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
4.0.1710 0 9/1/2026
4.0.1709 0 9/1/2026
4.0.1708 0 9/1/2026
4.0.1707 0 9/1/2026
4.0.1706 0 9/1/2026
4.0.1705 0 8/31/2026
4.0.1704 0 8/31/2026
4.0.1702 24 8/31/2026
4.0.1701 27 8/31/2026
4.0.1700 36 8/31/2026
4.0.1699 36 8/31/2026
4.0.1698 57 8/31/2026
4.0.1696 31 8/31/2026
4.0.1695 34 8/30/2026
4.0.1694 43 8/30/2026
4.0.1693 35 8/30/2026
4.0.1692 39 8/30/2026
4.0.1691 35 8/30/2026
4.0.1690 47 8/30/2026
4.0.1689 40 8/29/2026
Loading failed

Update dependency Soenneker.Extensions.HttpClient to 4.0.3997 (#2238)