-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TwilioClient for multi-tenancy apps #684
Comments
While the docs all use the static client, you can instantiate your own |
This thread on Stackoverflow titled "What Pattern to Use for TwilioRestClient with Dependency Injection" shows how to use TwilioClient in a multi-tenancy app. I can confirm it works and have 1 app that accesses multiple accounts with different AccountSid and AuthToken combinations and it interfaces with Polly v7 as well as Polly v8 for resilient httpclients. |
Closing this issue as resolved by above comments |
Currently the
C#
twilio SDK does not allow us to use it in a multi-tenancy app. The problem with the existing code, is that is stores the username, password and others is a static variable. When you use this SDK with an app that supports multi-tenancy, you may end up using invalid parameters for requests since it is not thread-safe. If your are using an interface for the client, we could have easily replaced your default implementation with once that would work in a multi-tenancy apps.The text was updated successfully, but these errors were encountered: