Soenneker.Twilio.RestClient 2.1.196

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Twilio.RestClient --version 2.1.196
NuGet\Install-Package Soenneker.Twilio.RestClient -Version 2.1.196
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.Twilio.RestClient" Version="2.1.196" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Twilio.RestClient --version 2.1.196
#r "nuget: Soenneker.Twilio.RestClient, 2.1.196"
#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.
// Install Soenneker.Twilio.RestClient as a Cake Addin
#addin nuget:?package=Soenneker.Twilio.RestClient&version=2.1.196

// Install Soenneker.Twilio.RestClient as a Cake Tool
#tool nuget:?package=Soenneker.Twilio.RestClient&version=2.1.196

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.Twilio.RestClient

An async thread-safe singleton for a Twilio RestClient

Installation

dotnet add package Soenneker.Twilio.RestClient

Why?

This library provides a singleton of a TwilioRestClient.

Internally it implements an HttpClient singleton. This HttpClient has less overhead than new instances of HttpClient and IHttpClientFactory all while correctly handling connection pooling for DNS changes.

See soenneker.utils.httpclientcache for more information.

Usage

  1. Register ITwilioRestClientUtil with DI.
public static async Task Main(string[] args)
{
    ...
    builder.Services.AddTwilioRestClientUtilAsSingleton();
}
  1. Inject ITwilioRestClientUtil via constructor, and retrieve a TwilioRestClient.
public class TestClass
{
    ITwilioRestClientUtil _twilioRestClientUtil;

    public TestClass(ITwilioRestClientUtil twilioRestClientUtil)
    {
        _twilioRestClientUtil = twilioRestClientUtil;
    }

    public async ValueTask SendMessage()
    {
        var message = await MessageResource.CreateAsync(
            new PhoneNumber("+11234567890"),
            from: new PhoneNumber("+10987654321"),
            body: "Hello World!",
            client: await _twilioRestClientUtil.Get()
        );

        Console.WriteLine(message.Sid);
    }
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
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
2.1.306 0 4/29/2024
2.1.305 0 4/29/2024
2.1.304 0 4/29/2024
2.1.303 17 4/28/2024
2.1.302 14 4/28/2024
2.1.301 14 4/28/2024
2.1.300 22 4/28/2024
2.1.299 26 4/28/2024
2.1.298 26 4/28/2024
2.1.297 29 4/28/2024
2.1.296 23 4/28/2024
2.1.295 23 4/28/2024
2.1.294 28 4/28/2024
2.1.293 25 4/28/2024
2.1.292 25 4/28/2024
2.1.291 27 4/28/2024
2.1.290 24 4/28/2024
2.1.289 25 4/28/2024
2.1.288 32 4/28/2024
2.1.287 27 4/28/2024
2.1.286 27 4/28/2024
2.1.285 33 4/28/2024
2.1.284 30 4/28/2024
2.1.283 34 4/28/2024
2.1.282 28 4/28/2024
2.1.281 34 4/28/2024
2.1.280 30 4/28/2024
2.1.279 35 4/28/2024
2.1.278 29 4/28/2024
2.1.277 32 4/27/2024
2.1.276 31 4/27/2024
2.1.275 75 4/20/2024
2.1.274 71 4/20/2024
2.1.273 81 4/20/2024
2.1.272 74 4/20/2024
2.1.271 74 4/20/2024
2.1.270 71 4/19/2024
2.1.269 68 4/19/2024
2.1.268 70 4/19/2024
2.1.267 69 4/19/2024
2.1.266 65 4/19/2024
2.1.265 65 4/19/2024
2.1.264 66 4/19/2024
2.1.263 72 4/19/2024
2.1.262 65 4/19/2024
2.1.261 63 4/19/2024
2.1.260 72 4/19/2024
2.1.259 64 4/18/2024
2.1.258 66 4/18/2024
2.1.257 66 4/15/2024
2.1.256 80 4/14/2024
2.1.255 72 4/13/2024
2.1.254 69 4/13/2024
2.1.253 73 4/13/2024
2.1.252 75 4/13/2024
2.1.251 67 4/13/2024
2.1.250 80 4/12/2024
2.1.249 79 4/12/2024
2.1.248 66 4/12/2024
2.1.247 54 4/12/2024
2.1.246 65 4/12/2024
2.1.245 57 4/12/2024
2.1.244 66 4/12/2024
2.1.243 65 4/12/2024
2.1.242 62 4/12/2024
2.1.241 67 4/12/2024
2.1.240 57 4/12/2024
2.1.239 64 4/12/2024
2.1.238 66 4/12/2024
2.1.237 69 4/12/2024
2.1.236 72 4/12/2024
2.1.235 68 4/12/2024
2.1.234 73 4/12/2024
2.1.233 61 4/12/2024
2.1.232 75 4/12/2024
2.1.231 87 4/12/2024
2.1.230 69 4/12/2024
2.1.229 62 4/12/2024
2.1.228 67 4/11/2024
2.1.227 63 4/10/2024
2.1.226 76 4/10/2024
2.1.225 72 4/10/2024
2.1.224 58 4/10/2024
2.1.223 70 4/10/2024
2.1.222 64 4/10/2024
2.1.221 59 4/10/2024
2.1.220 64 4/10/2024
2.1.219 61 4/10/2024
2.1.218 61 4/10/2024
2.1.217 61 4/10/2024
2.1.216 66 4/4/2024
2.1.215 66 4/3/2024
2.1.214 66 4/2/2024
2.1.213 79 4/2/2024
2.1.212 81 4/2/2024
2.1.211 71 4/2/2024
2.1.210 67 4/2/2024
2.1.209 88 4/2/2024
2.1.208 80 4/2/2024
2.1.207 78 4/1/2024
2.1.206 75 4/1/2024
2.1.205 78 4/1/2024
2.1.204 80 4/1/2024
2.1.203 89 4/1/2024
2.1.202 79 3/30/2024
2.1.201 81 3/29/2024
2.1.200 78 3/29/2024
2.1.199 83 3/29/2024
2.1.198 75 3/29/2024
2.1.197 79 3/29/2024
2.1.196 81 3/25/2024
2.1.195 83 3/25/2024
2.1.194 80 3/25/2024
2.1.193 76 3/25/2024
2.1.192 68 3/25/2024
2.1.191 80 3/25/2024
2.1.190 82 3/25/2024
2.1.189 77 3/25/2024
2.1.188 84 3/25/2024
2.1.187 89 3/25/2024
2.1.186 80 3/25/2024
2.1.185 84 3/25/2024
2.1.184 98 3/21/2024
2.1.183 77 3/21/2024
2.1.182 72 3/21/2024
2.1.181 81 3/21/2024
2.1.180 86 3/20/2024
2.1.179 71 3/20/2024
2.1.178 81 3/20/2024
2.1.177 72 3/20/2024
2.1.176 79 3/19/2024
2.1.175 84 3/19/2024
2.1.174 87 3/19/2024
2.1.173 92 3/19/2024
2.1.172 86 3/19/2024
2.1.171 71 3/19/2024
2.1.170 87 3/19/2024
2.1.169 77 3/19/2024
2.1.168 81 3/19/2024
2.1.167 90 3/19/2024
2.1.166 87 3/19/2024
2.1.165 95 3/19/2024
2.1.164 91 3/19/2024
2.1.163 94 3/19/2024
2.1.162 82 3/19/2024
2.1.161 86 3/19/2024
2.1.160 79 3/18/2024
2.1.159 82 3/18/2024
2.1.158 93 3/16/2024
2.1.157 96 3/16/2024
2.1.156 96 3/16/2024
2.1.155 92 3/16/2024
2.1.154 104 3/16/2024
2.1.153 90 3/16/2024
2.1.152 89 3/15/2024
2.1.151 84 3/15/2024
2.1.150 91 3/15/2024
2.1.149 88 3/14/2024
2.1.148 80 3/13/2024
2.1.147 87 3/13/2024
2.1.146 76 3/13/2024
2.1.145 87 3/13/2024
2.1.144 89 3/13/2024
2.1.143 84 3/13/2024
2.1.142 79 3/13/2024
2.1.141 80 3/13/2024
2.1.140 87 3/13/2024
2.1.139 97 3/13/2024
2.1.138 85 3/13/2024
2.1.137 82 3/13/2024
2.1.136 82 3/13/2024
2.1.135 93 3/13/2024
2.1.134 82 3/13/2024
2.1.133 79 3/13/2024
2.1.132 88 3/13/2024
2.1.131 93 3/13/2024
2.1.130 88 3/13/2024
2.1.129 81 3/13/2024
2.1.128 92 3/13/2024
2.1.127 91 3/13/2024
2.1.126 93 3/12/2024
2.1.125 87 3/12/2024
2.1.124 99 3/12/2024
2.1.123 79 3/12/2024
2.1.122 95 3/12/2024
2.1.121 91 3/12/2024
2.1.120 86 3/12/2024
2.1.119 88 3/12/2024
2.1.118 100 3/12/2024
2.1.117 89 3/12/2024
2.1.116 89 3/11/2024
2.1.115 94 3/11/2024
2.1.114 94 3/11/2024
2.1.113 92 3/11/2024
2.1.112 89 3/11/2024
2.1.111 91 3/11/2024
2.1.110 92 3/11/2024
2.1.109 74 3/11/2024
2.1.108 76 3/11/2024
2.1.107 75 3/11/2024
2.1.106 70 3/11/2024
2.1.105 74 3/11/2024
2.1.104 94 3/10/2024
2.1.103 100 3/10/2024
2.1.102 88 3/10/2024
2.1.101 95 3/10/2024
2.1.100 88 3/10/2024
2.1.99 94 3/10/2024
2.1.98 95 3/9/2024
2.1.97 91 3/8/2024
2.1.96 88 3/8/2024
2.1.95 88 3/8/2024
2.1.94 93 3/8/2024
2.1.93 88 3/8/2024
2.1.92 88 3/8/2024
2.1.91 83 3/8/2024
2.1.90 81 3/8/2024
2.1.89 87 3/8/2024
2.1.88 83 3/8/2024
2.1.87 96 3/8/2024
2.1.86 86 3/8/2024
2.1.85 84 3/8/2024
2.1.84 91 3/8/2024
2.1.83 89 3/8/2024
2.1.82 90 3/8/2024
2.1.81 90 3/6/2024
2.1.80 89 3/6/2024
2.1.79 90 3/6/2024
2.1.78 87 3/6/2024
2.1.77 96 3/6/2024
2.1.76 88 3/6/2024
2.1.75 85 3/6/2024
2.1.74 88 3/4/2024
2.1.73 91 3/4/2024
2.1.72 82 3/4/2024
2.1.71 78 3/4/2024
2.1.70 81 3/4/2024
2.1.69 81 3/4/2024
2.1.68 89 3/4/2024
2.1.67 78 3/4/2024
2.1.66 83 3/4/2024
2.1.65 76 3/4/2024
2.1.64 82 3/4/2024
2.1.63 85 3/4/2024
2.1.62 84 3/4/2024
2.1.61 78 3/4/2024
2.1.60 88 3/3/2024
2.1.59 84 3/3/2024
2.1.58 74 3/3/2024
2.1.57 85 3/3/2024
2.1.56 85 3/3/2024
2.1.55 70 3/3/2024
2.1.54 87 3/3/2024
2.1.53 79 3/3/2024
2.1.52 78 3/2/2024
2.1.51 79 3/2/2024
2.1.50 84 3/2/2024
2.1.49 74 3/2/2024
2.1.48 88 3/2/2024
2.1.47 77 3/2/2024
2.1.46 77 3/2/2024
2.1.45 78 3/2/2024
2.1.44 67 3/2/2024
2.1.43 84 3/2/2024
2.1.42 77 3/2/2024
2.1.41 68 3/2/2024
2.1.40 76 3/2/2024
2.1.39 72 3/2/2024
2.1.38 79 3/2/2024
2.1.37 77 3/2/2024
2.1.36 83 3/2/2024
2.1.35 89 3/1/2024
2.1.34 79 2/29/2024
2.1.33 78 2/29/2024
2.1.32 74 2/29/2024
2.1.31 75 2/29/2024
2.1.30 79 2/29/2024
2.1.29 77 2/29/2024
2.1.28 77 2/29/2024
2.1.27 78 2/29/2024
2.1.26 74 2/29/2024
2.1.25 75 2/29/2024
2.1.24 80 2/29/2024
2.1.23 78 2/29/2024
2.1.22 77 2/29/2024
2.1.21 76 2/29/2024
2.1.20 79 2/29/2024
2.1.19 88 2/29/2024
2.1.18 85 2/29/2024
2.1.17 96 2/27/2024
2.1.16 80 2/27/2024
2.1.15 82 2/26/2024
2.1.14 71 2/26/2024
2.1.13 72 2/26/2024
2.1.12 70 2/26/2024
2.1.11 79 2/26/2024
2.1.10 79 2/26/2024
2.1.9 79 2/26/2024
2.1.8 78 2/26/2024
2.1.7 79 2/26/2024
2.1.6 77 2/26/2024
2.1.5 82 2/25/2024
2.1.4 85 2/25/2024
2.1.3 81 2/25/2024
2.1.2 82 2/24/2024
2.1.1 82 2/24/2024