twilio / twilio-csharp

Twilio C#/.NET Helper Library for .NET6+.
MIT License
673 stars 302 forks source link

Twilio Voice API Async Support #590

Closed mfuzailzubari closed 2 years ago

mfuzailzubari commented 2 years ago

Issue Summary

In my application of ASP.NET core, I am using mediator pattern which requires Async/Await i.e. Async. I want to integrate my voice API on the same mechanism in which whenever I receive a call on API it will transfer it to suitable handler and then the handler returns the VoiceResponse.

Code Snippet

image

eshanholtz commented 2 years ago

Hi @mfuzailzubari

The twilio-csharp helper library supports Async functionality via the <Action>Async versions of our functions. For example, if you wanted to create a CallResource async, you would use the CallResource.CreateAsync() function instead of CallResource.Create().

eshanholtz commented 2 years ago

Closing due to lack of customer response.