Soenneker.SendGrid.Client 4.0.2756

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

Provides a lazily initialized instance of the official SendGridClient for mail, contacts, lists, templates, suppressions, statistics, and account APIs.

Installation

dotnet add package Soenneker.SendGrid.Client

Configuration

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

Usage

using SendGrid;
using Soenneker.SendGrid.Client.Abstract;
using Soenneker.SendGrid.Client.Registrars;

services.AddSendGridClientUtilAsSingleton();

public sealed class SendGridScopeReader
{
    private readonly ISendGridClientUtil _sendGrid;

    public SendGridScopeReader(ISendGridClientUtil sendGrid)
    {
        _sendGrid = sendGrid;
    }

    public async Task<Response> GetScopes(CancellationToken cancellationToken)
    {
        SendGridClient client = await _sendGrid.Get(cancellationToken);
        return await client.RequestAsync(
            method: BaseClient.Method.GET,
            urlPath: "scopes",
            cancellationToken: cancellationToken);
    }
}

The configured key determines which SendGrid endpoints the returned client can access. Use AddSendGridClientUtilAsScoped() when each scope should lazily create its own official client instance.

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 (1)

Showing the top 1 NuGet packages that depend on Soenneker.SendGrid.Client:

Package Downloads
Soenneker.SendGrid.Contacts

Adds, retrieves, searches, and deletes SendGrid Marketing contacts.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.2756 0 9/16/2026
4.0.2755 0 9/16/2026
4.0.2754 31 9/15/2026
4.0.2753 55 9/15/2026
4.0.2752 96 9/13/2026
4.0.2751 77 9/13/2026
4.0.2750 99 9/13/2026
4.0.2749 82 9/13/2026
4.0.2748 76 9/13/2026
4.0.2747 79 9/13/2026
4.0.2746 100 9/13/2026
4.0.2745 96 9/12/2026
4.0.2743 98 9/12/2026
4.0.2740 108 9/9/2026
4.0.2739 106 9/9/2026
4.0.2738 126 9/9/2026
4.0.2737 91 9/8/2026
4.0.2736 127 9/8/2026
4.0.2735 110 9/8/2026
4.0.2734 104 9/8/2026
Loading failed

Update dependency Soenneker.Utils.HttpClientCache to 4.0.2082 (#3289)