Soenneker.SendGrid.Client 11.0.2836

Prefix Reserved
dotnet add package Soenneker.SendGrid.Client --version 11.0.2836
                    
NuGet\Install-Package Soenneker.SendGrid.Client -Version 11.0.2836
                    
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="11.0.2836" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.SendGrid.Client" Version="11.0.2836" />
                    
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 11.0.2836
                    
#r "nuget: Soenneker.SendGrid.Client, 11.0.2836"
                    
#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@11.0.2836
                    
#: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=11.0.2836
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.Client&version=11.0.2836
                    
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 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.2836 0 12/1/2026
11.0.2835 0 12/1/2026
11.0.2834 39 12/1/2026
11.0.2833 37 12/1/2026
11.0.2832 37 12/1/2026
11.0.2831 56 12/1/2026
11.0.2830 65 11/30/2026
11.0.2829 61 11/30/2026
11.0.2828 78 11/30/2026
11.0.2827 72 11/29/2026
11.0.2826 74 11/29/2026
11.0.2825 136 11/19/2026
11.0.2824 98 11/19/2026
11.0.2823 98 11/18/2026
11.0.2822 103 11/18/2026
11.0.2820 95 11/18/2026
11.0.2818 100 11/15/2026
11.0.2817 99 11/15/2026
11.0.2816 103 11/11/2026
11.0.2815 108 11/11/2026
Loading failed

Updated Soenneker.Utils.HttpClientCache to 11.0.2175