protected void OnVistCookiesCompleted(CookieVistCompletedEventAgrs agrs) { if (null != this.VistCookiesCompleted) { this.VistCookiesCompleted.Invoke(this, agrs); } }
protected override bool Visit(CefCookie cookie, int count, int total, out bool delete) { delete = false; this.Total = total; if (null != cookie) { if (cookie.Name != __temp_cookie_key_securityGetCookies) { this.Results.Add(cookie); } } if ((count + 1) == total) { //遍历完毕最后的Cookie后,通知订阅事件 var agrs = new CookieVistCompletedEventAgrs() { Results = this.Results }; this.OnVistCookiesCompleted(agrs); } return(true); }