CookieVisitor .cs 579 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using CefSharp;
  6. namespace UAS_Web.tool
  7. {
  8. public class CookieVisitor : CefSharp.ICookieVisitor
  9. {
  10. public event Action<CefSharp.Cookie> SendCookie;
  11. public void Dispose()
  12. {
  13. //throw new NotImplementedException();
  14. }
  15. public bool Visit(CefSharp.Cookie cookie, int count, int total, ref bool deleteCookie)
  16. {
  17. deleteCookie = false;
  18. SendCookie?.Invoke(cookie);
  19. return true;
  20. }
  21. }
  22. }