old_flsystem/类库/Api.Framework/Cps/CefSharp1/CookieVisitor.cs

27 lines
594 B
C#

using CefSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Api.Framework.Cps.CefSharp1
{
public class CookieVisitor : ICookieVisitor
{
public event Action<Cookie> SendCookie;
public void Dispose()
{ }
public bool Visit(Cookie cookie, int count, int total, ref bool deleteCookie)
{
deleteCookie = false;
if (SendCookie != null)
{
SendCookie(cookie);
}
return true;
}
}
}