public SessionBasedImageCaptchaGenerator( ICaptchaCodeGenerator captchaGenerator, ICaptchaImageGenerator captchaImageGenerator, ICaptchaCodeStorage captchaCodeStorage) { _captchaGenerator = captchaGenerator; _captchaImageGenerator = captchaImageGenerator; _captchaCodeStorage = captchaCodeStorage; }
/// <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; }