Esempio n. 1
0
 public SessionBasedSmsCaptchaGenerator(ICaptchaCodeGenerator captchaCodeGenerator, ICaptchaCodeStorage captchaCodeStorage, ISmsSender smsSender, ISmsContentGenerator smsContentGenerator, ISmsReceiverSelector smsReceiverSelector)
 {
     _captchaCodeGenerator = captchaCodeGenerator;
     _captchaCodeStorage   = captchaCodeStorage;
     _smsSender            = smsSender;
     _smsContentGenerator  = smsContentGenerator;
     _smsReceiverSelector  = smsReceiverSelector;
 }
 public DefaultCaptchaGenerator(
     ICaptchaCodeGenerator captchaCodeGenerator,
     ICaptchaCodeStorage captchaCodeStorage,
     ILogger <DefaultCaptchaGenerator> logger)
 {
     _captchaCodeGenerator = captchaCodeGenerator;
     _captchaCodeStorage   = captchaCodeStorage;
     _logger = logger;
 }
Esempio n. 3
0
 public SessionBasedImageCaptchaGenerator(
     ICaptchaCodeGenerator captchaGenerator,
     ICaptchaImageGenerator captchaImageGenerator,
     ICaptchaCodeStorage captchaCodeStorage)
 {
     _captchaGenerator      = captchaGenerator;
     _captchaImageGenerator = captchaImageGenerator;
     _captchaCodeStorage    = captchaCodeStorage;
 }
 public SessionBasedEmailCaptchaGenerator(
     ICaptchaCodeGenerator captchaGenerator,
     ICaptchaCodeStorage captchaCodeStorage,
     IEmailSender emailSender,
     IEmailReceiverSelector emailReceiverSelector,
     IEmailBodyGenerator emailBodyGenerator)
 {
     _captchaGenerator      = captchaGenerator;
     _captchaCodeStorage    = captchaCodeStorage;
     _emailSender           = emailSender;
     _emailReceiverSelector = emailReceiverSelector;
     _emailBodyGenerator    = emailBodyGenerator;
 }
 public DefaultCaptchaValidator(ICaptchaCodeStorage captchaCodeStorage)
 {
     _captchaCodeStorage = captchaCodeStorage;
 }