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)); }
public void ProcessRequest(HttpContext context) { var handler = new CaptchaHandler(new HttpContextWrapper(context)); handler.RenderContent(); }