public async Task SendAsync(IdentityMessage message)//, bool needDencrytion = true { var to = isValidPhoneNo(message.Destination) ? message.Destination : Encryption.Decrypt(message.Destination); await _messageSender.SendMessageAsync(to, System.Configuration.ConfigurationManager.AppSettings["TWILIONUMBER"], message.Body); }
public async Task SendNotificationAsync(Reservation reservation) { var pendingReservations = await _repository.FindPendingReservationsAsync(); if (pendingReservations.Count() < 2) { var notification = BuildNotification(reservation); await _client.SendMessageAsync(notification.To, notification.From, notification.Messsage); } }
public async Task SendAsync(IdentityMessage message) { await _messageSender.SendMessageAsync(message.Destination, System.Configuration.ConfigurationManager.AppSettings["SMSAccountFrom"], message.Body); }
public async Task SendAsync(IdentityMessage message) { await _messageSender.SendMessageAsync(message.Destination, Config.TwilioNumber, message.Body); }
public async Task SendAsync(IdentityMessage message) { var twilioNumber = ConfigurationManager.AppSettings["twilioNumber"]; await _messageSender.SendMessageAsync(message.Destination, twilioNumber, message.Body); }
public async Task SendNotificationAsync(Notification notification) { await _client.SendMessageAsync(notification.To, notification.Message); }
public async Task SendAsync(IdentityMessage message) { await _messageSender.SendMessageAsync(message.Destination, ConfigurationManager.AppSettings["SenderID"], message.Body); }