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); }
public void DeleteCookie(Cookie cookie) { _cookieJar.DeleteCookie(cookie); }