Example #1
0
 public CaptchaGeneratorService(ICaptchaStorageService storage, IOptions <CaptchaOptions> captchaOptions,
                                IKeyGeneratorService key, IFontGeneratorService font, IEffectGeneratorService effect)
 {
     _storage = storage;
     Options  = captchaOptions?.Value;
     _key     = key;
     _font    = font;
     _effect  = effect;
 }
Example #2
0
 public HomeController(ICaptchaGeneratorService generator, ICaptchaValidationService validation, ICaptchaStorageService storage)
     : base(generator, validation, storage)
 {
 }
Example #3
0
 public CaptchaValidationService(ICaptchaStorageService storage, IOptions <CaptchaOptions> captchaOptions)
 {
     _storage        = storage;
     _captchaOptions = captchaOptions?.Value;
 }
Example #4
0
 public CaptchaController(ICaptchaGeneratorService generator, ICaptchaValidationService validation, ICaptchaStorageService storage)
 {
     _generator  = generator;
     _validation = validation;
     _storage    = storage;
 }