Encog.Util.HTTP.FormUtility.Complete C# (CSharp) Method

Complete() public method

Complete the building of the form.
public Complete ( ) : void
return void
        public void Complete()
        {
            if (_boundary != null)
            {
                Boundary();
                Writeln("--");
                _os.Flush();
            }
        }

Usage Example

Esempio n. 1
0
 public ICollection<Uri> Search(string searchFor)
 {
     ICollection<Uri> is2 = null;
     string str;
     int num;
     bool flag;
     MemoryStream os = new MemoryStream();
     FormUtility utility = new FormUtility(os, null);
     if ((((uint) flag) + ((uint) num)) <= uint.MaxValue)
     {
         utility.Add("appid", "YahooDemo");
         goto Label_00E2;
     }
     Label_0093:
     if (((uint) flag) <= uint.MaxValue)
     {
         os.Dispose();
         Uri uri = new Uri("http://search.yahooapis.com/WebSearchService/V1/webSearch?" + str);
         num = 0;
         flag = false;
         while (!flag)
         {
             try
             {
                 is2 = this.x7cdeaeac68d869b5(uri);
                 flag = true;
             }
             catch (IOException)
             {
                 do
                 {
                     if (num == 5)
                     {
                         throw;
                     }
                     Thread.Sleep(0x1388);
                 }
                 while ((((uint) flag) - ((uint) num)) > uint.MaxValue);
             }
             num++;
         }
         return is2;
     }
     Label_00E2:
     utility.Add("results", "100");
     utility.Add("query", searchFor);
     utility.Complete();
     str = new ASCIIEncoding().GetString(os.GetBuffer());
     goto Label_0093;
 }
All Usage Examples Of Encog.Util.HTTP.FormUtility::Complete