Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 public ValidationComponent(IRedisCache redisCache,
                            IOptions <SmsOptions> smsOptions, IPassportClient passportClient, ISmsRecordRepository smsRecordRepository, IUnitOfWork unitOfWork, IBackgroundRunService backgroundRunService, AppSettings appSettings)
 {
     _redisCache           = redisCache;
     _passportClient       = passportClient;
     _smsRecordRepository  = smsRecordRepository;
     _unitOfWork           = unitOfWork;
     _backgroundRunService = backgroundRunService;
     _appSettings          = appSettings;
     _smsServerOptions     = smsOptions.Value;
 }
Esempio n. 2
0
 public UserProfileService(AlexandriaContext context,
                           IAuthorizationService authorizationService,
                           IPassportClient passportClient,
                           IBackgroundWorker backgroundWorker,
                           IOptions <Shared.Configuration.Queue> queues,
                           SlackClient slackClient,
                           IProfanityValidator profanityValidator)
 {
     this.context = context;
     this.authorizationService = authorizationService;
     this.passportClient       = passportClient;
     this.backgroundWorker     = backgroundWorker;
     this.queues             = queues.Value ?? throw new NoNullAllowedException("Queue Options can't be null");
     this.slackClient        = slackClient;
     this.profanityValidator = profanityValidator;
 }