Пример #1
0
 /// <summary>
 /// Retrieve all cookies that apply to a Uri.
 /// </summary>
 /// <param name="uri">Uri to match.</param>
 /// <returns>List of cookies.</returns>
 public List<DreamCookie> Fetch(XUri uri)
 {
     if(uri == null) {
         throw new ArgumentNullException("uri");
     }
     List<DreamCookie> result = new List<DreamCookie>();
     Fetch(uri, 0, result);
     XUri localUri = uri.AsLocalUri();
     if(localUri != uri) {
         Fetch(localUri, 0, result);
     }
     return result;
 }