Beispiel #1
0
        public static string GetVaryByCustomString(HttpContext context, string custom)
        {
            var factory = CaptchaBuilder.Current.Factory(context.Request.Path);

            if (factory == null)
            {
                return(null);
            }

            var handler = new CaptchaHandler(new HttpContextWrapper(context), factory);

            return(handler.GetVaryByCustomString(custom));
        }
Beispiel #2
0
        public void ProcessRequest(HttpContext context)
        {
            var handler = new CaptchaHandler(new HttpContextWrapper(context));

            handler.RenderContent();
        }