Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Twilio Controller - Need to have a controller not heriting from PlatformControllerBase #6387


User avatar
0
sbenfares created

Hi,

I would like to use Twilio for SMS, and for incoming messages (sending messages is ok).

https://www.twilio.com/docs/sms/tutorials/how-to-receive-and-reply-csharp

I need to have a Controller heriting from TwilioController (and not from PlatformControllerBase).

What is the best way to do it ?

I need to register my controller in Startup.cs ?

How to deal it ?

Thanks


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Try to inherit the ITransientDependency interface

    public class YourController : ITransientDependency

  • User Avatar
    0
    sbenfares created

    Thanks