Soenneker.SendGrid.Contacts 11.0.3531

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.SendGrid.Contacts --version 11.0.3531
                    
NuGet\Install-Package Soenneker.SendGrid.Contacts -Version 11.0.3531
                    
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="11.0.3531" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.SendGrid.Contacts" Version="11.0.3531" />
                    
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 11.0.3531
                    
#r "nuget: Soenneker.SendGrid.Contacts, 11.0.3531"
                    
#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@11.0.3531
                    
#: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=11.0.3531
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.Contacts&version=11.0.3531
                    
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 net11.0 is compatible. 
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
11.0.3555 0 11/3/2026
11.0.3554 0 11/3/2026
11.0.3553 0 11/3/2026
11.0.3552 5 11/3/2026
11.0.3548 36 11/3/2026
11.0.3546 33 11/3/2026
11.0.3545 35 11/3/2026
11.0.3543 51 11/2/2026
11.0.3542 57 11/2/2026
11.0.3541 55 11/2/2026
11.0.3540 64 10/31/2026
11.0.3539 57 10/31/2026
11.0.3538 57 10/31/2026
11.0.3537 64 10/29/2026
11.0.3536 63 10/29/2026
11.0.3535 86 10/28/2026
11.0.3534 82 10/27/2026
11.0.3533 97 10/27/2026
11.0.3532 85 10/27/2026
11.0.3531 78 10/27/2026
Loading failed

Update dependency Soenneker.SendGrid.Client to 11.0.2804 (#4069)