Soenneker.SendGrid.Contacts
4.0.3394
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.SendGrid.Contacts --version 4.0.3394
NuGet\Install-Package Soenneker.SendGrid.Contacts -Version 4.0.3394
<PackageReference Include="Soenneker.SendGrid.Contacts" Version="4.0.3394" />
<PackageVersion Include="Soenneker.SendGrid.Contacts" Version="4.0.3394" />
<PackageReference Include="Soenneker.SendGrid.Contacts" />
paket add Soenneker.SendGrid.Contacts --version 4.0.3394
#r "nuget: Soenneker.SendGrid.Contacts, 4.0.3394"
#:package Soenneker.SendGrid.Contacts@4.0.3394
#addin nuget:?package=Soenneker.SendGrid.Contacts&version=4.0.3394
#tool nuget:?package=Soenneker.SendGrid.Contacts&version=4.0.3394
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 | Versions 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. |
-
net10.0
- Polly (>= 8.7.0)
- Soenneker.Extensions.Enumerable.String (>= 4.0.1429)
- Soenneker.SendGrid.Client (>= 4.0.2715)
- Soenneker.Utils.Json (>= 4.0.2664)
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.3399 | 0 | 8/31/2026 |
| 4.0.3398 | 0 | 8/31/2026 |
| 4.0.3397 | 0 | 8/31/2026 |
| 4.0.3396 | 0 | 8/31/2026 |
| 4.0.3395 | 0 | 8/31/2026 |
| 4.0.3394 | 0 | 8/31/2026 |
| 4.0.3393 | 0 | 8/31/2026 |
| 4.0.3392 | 25 | 8/31/2026 |
| 4.0.3390 | 29 | 8/31/2026 |
| 4.0.3389 | 23 | 8/31/2026 |
| 4.0.3388 | 30 | 8/31/2026 |
| 4.0.3386 | 30 | 8/30/2026 |
| 4.0.3385 | 30 | 8/30/2026 |
| 4.0.3384 | 32 | 8/30/2026 |
| 4.0.3383 | 34 | 8/30/2026 |
| 4.0.3382 | 38 | 8/30/2026 |
| 4.0.3380 | 35 | 8/30/2026 |
| 4.0.3379 | 42 | 8/30/2026 |
| 4.0.3378 | 37 | 8/30/2026 |
| 4.0.3377 | 37 | 8/29/2026 |
Updated NuGet packages