Soenneker.Twilio.RestClient 2.1.88

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.88
NuGet\Install-Package Soenneker.Twilio.RestClient -Version 2.1.88
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.88" />
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.88
#r "nuget: Soenneker.Twilio.RestClient, 2.1.88"
#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.88

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

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