Soenneker.SendGrid.Contacts 4.0.3438

Prefix Reserved
This package has not been indexed yet. It will appear in search results and will be available for install/restore after indexing is complete.
The package icon will become available after this package is indexed.
dotnet add package Soenneker.SendGrid.Contacts --version 4.0.3438
                    
NuGet\Install-Package Soenneker.SendGrid.Contacts -Version 4.0.3438
                    
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.Contacts" Version="4.0.3438" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.SendGrid.Contacts" Version="4.0.3438" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.SendGrid.Contacts" />
                    
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.Contacts --version 4.0.3438
                    
#r "nuget: Soenneker.SendGrid.Contacts, 4.0.3438"
                    
#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.Contacts@4.0.3438
                    
#: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.Contacts&version=4.0.3438
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.Contacts&version=4.0.3438
                    
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.Contacts

Adds or updates SendGrid Marketing contacts, searches by email, retrieves by ID, and deletes selected contacts or the entire contact database.

Installation

dotnet add package Soenneker.SendGrid.Contacts

Configuration

{
  "SendGrid": {
    "ApiKey": "SG.xxxxxxxxx"
  }
}

The API key needs access to Marketing contacts.

Usage

using Soenneker.SendGrid.Contacts.Abstract;
using Soenneker.SendGrid.Contacts.Registrars;

services.AddSendGridContactsUtilAsSingleton();

public sealed class ContactLookup
{
    private readonly ISendGridContactsUtil _contacts;

    public ContactLookup(ISendGridContactsUtil contacts)
    {
        _contacts = contacts;
    }

    public async Task Find(
        string email,
        CancellationToken cancellationToken)
    {
        var result = await _contacts.Search(
            email,
            cancellationToken: cancellationToken);
    }
}

AddOrUpdate submits SendGrid's asynchronous import job and returns its job response. AddAndWait submits the job, waits briefly, then retries contact lookup for the first contact in the request.

Delete(ids) removes the specified contacts. DeleteAll() requests deletion of the entire SendGrid Marketing contact database and cannot be scoped to a list; use it only when that full deletion is intended.

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.3438 0 9/12/2026
4.0.3437 0 9/12/2026
4.0.3436 0 9/12/2026
4.0.3435 0 9/12/2026
4.0.3434 0 9/12/2026
4.0.3433 49 9/9/2026
4.0.3432 43 9/9/2026
4.0.3431 46 9/9/2026
4.0.3430 65 9/9/2026
4.0.3429 64 9/9/2026
4.0.3428 69 9/8/2026
4.0.3427 83 9/8/2026
4.0.3426 80 9/8/2026
4.0.3425 89 9/8/2026
4.0.3424 80 9/8/2026
4.0.3422 95 9/7/2026
4.0.3421 102 9/7/2026
4.0.3420 90 9/7/2026
4.0.3419 87 9/5/2026
4.0.3418 83 9/5/2026
Loading failed

Update dependency Soenneker.SendGrid.Client to 4.0.2745 (#3954)