示例#1
0
 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;
 }
示例#2
0
 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));
 }
示例#3
0
 public HomeController(IOptions <TwilioAccountDetails> acc)
 {
     _acc = acc.Value ?? throw new ArgumentException(nameof(acc));
 }
示例#4
0
 /// <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));
 }
示例#6
0
 public MailerRepository(IOptions <TwilioAccountDetails> twilioAccountDetails)
 {
     _twilioAccountDetails = twilioAccountDetails.Value ?? throw new ArgumentException(nameof(twilioAccountDetails));
 }