public NotificationRepository(IOptions <TwilioAccountDetails> twilioAccountDetails, IUserRepository userRepo, ISettingsRepository settingsRepo, INotificationHelper notificationHelper, ILogger <NotificationRepository> logger, IDepartmentRepository deptRepo, IOrganizationRepository orgRepo, IMailerRepository mailerRepo) { _twilioAccountDetails = twilioAccountDetails.Value ?? throw new ArgumentException(nameof(twilioAccountDetails)); _userRepo = userRepo; _settingsRepo = settingsRepo; _notificationHelper = notificationHelper; _logger = logger; _deptRepo = deptRepo; _orgRepo = orgRepo; _mailerRepo = mailerRepo; }
public VersesController(ApplicationDbContext context, IOptions <TwilioAccountDetails> twilioAccountDetails, IOptions <TwilioPhoneDetails> twilioPhoneDetails) { _context = context; _twilioAccountDetails = twilioAccountDetails.Value ?? throw new ArgumentException(nameof(twilioAccountDetails)); _twilioPhoneDetails = twilioPhoneDetails.Value ?? throw new ArgumentException(nameof(twilioPhoneDetails)); }
public HomeController(IOptions <TwilioAccountDetails> acc) { _acc = acc.Value ?? throw new ArgumentException(nameof(acc)); }
/// <summary> /// Create SMPP client, add event handlers /// for getting information about received and sended messages, /// create connection and initialize session /// </summary> /// <param name="KeepAliveInterval">Property for changing connection time(seconds) with server</param> /// <param name="serviceScopeFactory">instance of static service</param> public SmsSender(IServiceScopeFactory serviceScopeFactory, IOptions <TwilioAccountDetails> _twilioDetails) { this.serviceScopeFactory = serviceScopeFactory; this.twilioAccountDetails = _twilioDetails.Value; }
public MessageController(IOptions <TwilioAccountDetails> twilioAccountDetails) { _twilioAccountDetails = twilioAccountDetails.Value ?? throw new ArgumentException(nameof(twilioAccountDetails)); }
public MailerRepository(IOptions <TwilioAccountDetails> twilioAccountDetails) { _twilioAccountDetails = twilioAccountDetails.Value ?? throw new ArgumentException(nameof(twilioAccountDetails)); }