예제 #1
0
        public void DeleteCookie(Cookie cookie)
        {
            var MRes = new ManualResetEventSlim(true);

            MRes.Reset();
            Exception exception = null;

            Task.Run(async() =>
            {
                try
                {
                    await cookies.DeleteCookie(cookie).ConfigureAwait(false);
                }
                catch (Exception ex)
                {
                    exception = ex;
                }

                MRes.Set();
            }

                     );
            MRes.Wait();
            if (exception != null)
            {
                throw exception;
            }
        }
        public void DeleteCookie(CookieInstance cookie)
        {
            if (cookie == null)
            {
                return;
            }

            m_cookieJar.DeleteCookie(cookie.Cookie);
        }
예제 #3
0
 public void DeleteCookie(Cookie cookie)
 {
     _cookieJar.DeleteCookie(cookie);
 }