wcf使用task实现异步调用
摘要:private async void btnGetEmployees_Click(object sender, RoutedEventArgs e) { txtInfo.Text = "Data is Not Received Yet...."; MyRef.ServiceClient Proxy
阅读全文
posted @
2016-02-25 21:36
武胜-阿伟
阅读(1220)
推荐(0) 编辑
Async/Await - Best Practices in Asynchronous Programming z
摘要:These days there’s a wealth of information about the new async and await support in the Microsoft .NET Framework 4.5. This article is intended as a “s
阅读全文
posted @
2016-02-24 09:30
武胜-阿伟
阅读(429)
推荐(0) 编辑
How To Easily Call WCF Services Properly z
摘要:Please note: this article has been superceded by the documentation for the ChannelAdam WCF Library. Background In my previous article, How To Call WCF
阅读全文
posted @
2016-02-13 22:17
武胜-阿伟
阅读(349)
推荐(0) 编辑
Translate this app.config xml to code? (WCF) z
摘要:http://stackoverflow.com/questions/730693/translate-this-app-config-xml-to-code-wcf <system.serviceModel> <bindings> <basicHttpBinding> <binding name=
阅读全文
posted @
2016-02-12 16:57
武胜-阿伟
阅读(275)
推荐(0) 编辑
List集合去重的一种方法 z
摘要:需要对一个List<Model>集合去重,情况是该集合中会出现多个Name属性值相同的,但是其他属性值不同的数据。 在这种情况下,需求要只保留其中一个就好。 我觉得遍历和HashSet都不是我想要的,便采用了一下方式 定义Compare类,继承IEqualityComparer接口 public c
阅读全文
posted @
2016-02-12 15:01
武胜-阿伟
阅读(838)
推荐(0) 编辑