public TokenController(ILogger <TokenController> logger, IOptionsMonitor <TwilioAccountSettings> accountOptionsAccessor, IOptionsMonitor <TwilioChatSettings> chatOptionsAccessor, IOptionsMonitor <TwilioCallSettings> callOptionsAccessor)
 {
     _logger                = logger;
     _twilioSettings        = accountOptionsAccessor.CurrentValue;
     _twilioServiceSettings = chatOptionsAccessor.CurrentValue;
     _twilioCallSettings    = callOptionsAccessor.CurrentValue;
 }
Exemple #2
0
        public ChatController(IOptionsMonitor <TwilioAccountSettings> twilioOptionsMonitor, IOptionsMonitor <TwilioChatSettings> chatOptionsAccessor)
        {
            _twilioSettings     = twilioOptionsMonitor.CurrentValue;
            _twilioChatSettings = chatOptionsAccessor.CurrentValue;

            TwilioClient.Init(_twilioSettings.AccountSid, _twilioSettings.AuthToken);
        }
        public TwilioProvider(ITwilioSettings twilioSettings, ITwilioNumbers twilioNumbers)
        {
            Check.If(twilioSettings).IsNotNull();
            Check.If(twilioNumbers).IsNotNull();

            _twilioSettings = twilioSettings;
            _twilioNumbers = twilioNumbers;
        }
Exemple #4
0
 public SmsClient(ITwilioSettings settings)
 {
     _settings = settings;
 }
 public SmsSender(ITwilioSettings settings)
 {
     _settings = settings;
 }