Options class for configuring a SendGrid client, including API key and data residency.
// Source: https://github.com/sendgrid/sendgrid-csharp | License: MIT | Copyright 2024, Twilio SendGrid, Inc. <help@twilio.com>
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
namespace SendGrid
{
/// <summary>
/// Defines the options to use with the SendGrid client.
/// </summary>
public class SendGridClientOptions : BaseClientOptions
{
Dictionary<string, string> REGION_HOST_MAP = new Dictionary<string, string>
{
{"eu", "https://api.eu.sendgrid.com/"},
{"global", "https://api.sendgrid.com/"}
};
/// <summary>
/// Initializes a new instance of the <see cref="SendGridClientOptions"/> class.
/// </summary
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key