Пример #1
0
 public MethodHttp(TypeHttpMethod typeHttpMethod)
 {
     this.LabelMethod = typeHttpMethod.ToString();
     this.ValueMathod = typeHttpMethod;
 }
Пример #2
0
 public string PostFormat(string url, string data, TypeHttpMethod method)
 {
     if (Headers)
     {
         return(string.Format("client.NotGet(\"{0}\",{1},\"{2}\",whc);", url, data, method.ToString()));
     }
     else
     {
         return(string.Format("client.NotGet(\"{0}\",{1},\"{2}\");", url, data, method.ToString()));
     }
 }