示例#1
0
        public SimCaptchaService(ICache cache, IVCodeImage vCodeImage, IJsonHelper jsonHelper, SimCaptchaOptions options)
        {
            this._cacheHelper = new CacheHelper(cache);
            this._options     = options;
            this.RandomCode   = new RandomCodeHanZi();

            this.VCodeImage = vCodeImage;
            this.JsonHelper = jsonHelper;
        }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="appId"></param>
 /// <param name="appSecret"></param>
 /// <param name="verifyUrl">验证码服务端提供的验证ticket的url</param>
 public SimCaptchaClient(SimCaptchaOptions options, IJsonHelper jsonHelper)
 {
     this._options   = options;
     this.JsonHelper = jsonHelper;
 }