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