Soenneker.Twilio.RestClient 2.1.257

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

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

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