Exemple #1
0
 public EmailJob(IOptions <NotificationsOptions> options, EmailQueue queue, IEmailSender emailSender, ILogger <EmailJob> logger, IApplicationRepositoryFactory repoFactory)
 {
     _options     = options.Value;
     _queue       = queue;
     _emailSender = emailSender;
     _logger      = logger;
     _repoFactory = repoFactory;
 }
Exemple #2
0
 public EmailPollingJob(
     IOptions <NotificationsOptions> options,
     EmailQueue queue,
     InstanceInfoProvider instanceInfo,
     IApplicationRepositoryFactory repoFactory,
     IBlobService blobService,
     ILogger <EmailPollingJob> logger)
 {
     _options      = options.Value;
     _queue        = queue;
     _instanceInfo = instanceInfo;
     _repoFactory  = repoFactory;
     _blobService  = blobService;
     _logger       = logger;
 }
 public NotificationsQueue(
     IApplicationRepositoryFactory repoFactory,
     IOptions <NotificationsOptions> options,
     EmailQueue emailQueue,
     SmsQueue smsQueue,
     PushNotificationQueue pushQueue,
     IEmailSender emailSender,
     ISmsSender smsSender,
     IBlobService blobService)
 {
     _options     = options.Value;
     _repoFactory = repoFactory;
     _emailQueue  = emailQueue;
     _smsQueue    = smsQueue;
     _pushQueue   = pushQueue;
     _emailSender = emailSender;
     _smsSender   = smsSender;
     _blobService = blobService;
 }