Exemplo n.º 1
0
 public SessionBasedImageCaptchaGenerator(
     ICaptchaCodeGenerator captchaGenerator,
     ICaptchaImageGenerator captchaImageGenerator,
     ICaptchaCodeStorage captchaCodeStorage)
 {
     _captchaGenerator      = captchaGenerator;
     _captchaImageGenerator = captchaImageGenerator;
     _captchaCodeStorage    = captchaCodeStorage;
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="next"></param>
 /// <param name="store"></param>
 /// <param name="generator"></param>
 /// <param name="options"></param>
 public DefaultCaptchaMiddleware(
     RequestDelegate next,
     ICaptchaStore store,
     ICaptchaImageGenerator generator,
     IOptions <CaptchaOptions> options)
 {
     this.next      = next;
     this.store     = store;
     this.generator = generator;
     this.options   = options.Value;
 }