Exemplo n.º 1
0
 public static void AddCookies(this IHttpService http, IEnumerable <Cookie> cookies, Uri uri)
 {
     foreach (var cookie in cookies)
     {
         http.AddCookie(cookie, uri);
     }
 }
Exemplo n.º 2
0
        public static void AddCookies(this IHttpService http, IEnumerable <Cookie> cookies, string url = null)
        {
            var uri = url == null ? null : new Uri(url);

            foreach (var cookie in cookies)
            {
                http.AddCookie(cookie, uri);
            }
        }
Exemplo n.º 3
0
        public static void AddCookie(this IHttpService http, Cookie cookie, string url = null)
        {
            var uri = url == null ? null : new Uri(url);

            http.AddCookie(cookie, uri);
        }
Exemplo n.º 4
0
 public static void AddCookie(this IHttpService http, SimpleCookie cookie)
 {
     http.AddCookie(cookie.ToCookie());
 }