30 lines
613 B
C#
30 lines
613 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Work.BuyUsers
|
|
{
|
|
public class CookieVisitor : CefSharp.ICookieVisitor
|
|
{
|
|
public event Action<CefSharp.Cookie> SendCookie;
|
|
|
|
public void Dispose()
|
|
{
|
|
|
|
}
|
|
|
|
public bool Visit(CefSharp.Cookie cookie, int count, int total, ref bool deleteCookie)
|
|
{
|
|
deleteCookie = false;
|
|
if (SendCookie != null)
|
|
{
|
|
SendCookie(cookie);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|
|
}
|