示例#1
0
 public void LogParameters(SinaApi.ApiBase api, string tag, List<Parameter> ps)
 {
     StringBuilder sb = new StringBuilder();
     foreach (var t in ps)
     {
         if (t.Name.Length < 6 ||
             t.Name.Substring(0, 6) != "oauth_")
         sb.AppendFormat("{0}={1}&", t.Name, t.Value);
     }
     if (sb.Length > 0)
         sb.Remove(sb.Length - 1, 1);
     Log(api.name, tag, sb.ToString());
 }
示例#2
0
 public void Log(SinaApi.ApiBase api, string tag, string p_2)
 {
     Log(api.ToString(), tag, p_2);
 }