摘要: 当你使用客户端发送请求 Web API 的时候,因为API 有验证,所以你的请求报文中必须有”Authorization“,那么就需要手动添加了!HttpClient client = new HttpClient();client.BaseAddress = new Uri("http://loc... 阅读全文
posted @ 2014-09-18 12:06 Young汨 阅读(4392) 评论(1) 推荐(1) 编辑
摘要: 1 public static string Decrypt(this string code)2 {3 return Common.Decrypt(code); 4 }扩展方法一个项目中会有好几个类库,那么在一个公共的类库中添加的扩展方法,那么在其他... 阅读全文
posted @ 2014-09-18 11:54 Young汨 阅读(116) 评论(0) 推荐(0) 编辑