上一页 1 ··· 362 363 364 365 366 367 368 369 370 ··· 399 下一页
摘要: SummaryThis chapter covered a lot of ground,beginning with a look at the purpose of WCF,the problems it solves and its alignment with SOA,through disc 阅读全文
posted @ 2015-07-17 15:26 ChuckLu 阅读(156) 评论(0) 推荐(0)
摘要: 1.查找本机上的端口使用情况 netstat -an 2.查找指定端口的使用情况 C:\Windows\System32>netstat -ano | find "8002" TCP 0.0.0.0:8002 0.0.0.0:0 LISTENING 2884 TCP [::]:8002 [::]:0 阅读全文
posted @ 2015-07-17 11:34 ChuckLu 阅读(6099) 评论(0) 推荐(0)
摘要: 1.第一种情况 百度上找到了这篇文章 http://blog.sina.com.cn/s/blog_6b44b2ba01016j0z.html 讲的是使用了using用完之后就释放了,得到启发,仔细检查了Host的代码 对比了Learning WCF第一章中的示例代码,发现用try finally来 阅读全文
posted @ 2015-07-17 10:43 ChuckLu 阅读(1921) 评论(0) 推荐(0)
摘要: Exception Handling Statements (C# Reference) C# provides built-in support for handling anomalous situations, known as exceptions, which may occur duri 阅读全文
posted @ 2015-07-17 10:37 ChuckLu 阅读(259) 评论(0) 推荐(0)
摘要: 主体代码如下 IServiceA proxyA; ChannelFactory factoryA = new ChannelFactory(); proxyA = factoryA.CreateChannel();仔细检查后发现上面的ChannelFactory的构造函数,忘记传递参数了IServ... 阅读全文
posted @ 2015-07-17 10:05 ChuckLu 阅读(1717) 评论(0) 推荐(0)
摘要: Six important .NET concepts: Stack, heap, value types, reference types, boxing, and unboxing 阅读全文
posted @ 2015-07-17 00:38 ChuckLu 阅读(194) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/18720810/wcf-service-base-address-vs-endpoint-addressbaseAddress is just that, the base address for your endpoints ... 阅读全文
posted @ 2015-07-16 19:19 ChuckLu 阅读(1730) 评论(0) 推荐(0)
摘要: 服务和行为是并列的对应到配置文件中 wcf的配置在system.serviceModel中可以有多个服务一个服务会有一个主机以及多个终结点主机包含多个基址 baseAddress终结点,由三部分组成 地址,绑定,契约 Address,Binding,Contract行为可以包含多种,目前只用服务行... 阅读全文
posted @ 2015-07-16 17:13 ChuckLu 阅读(403) 评论(0) 推荐(0)
摘要: https://msdn.microsoft.com/en-us/library/hk90416s(v=vs.110).aspx VS中自带的只能提示,一个类继承自某一个接口。 由VS为类生成接口所要求的方法 using System; using System.Collections.Generi 阅读全文
posted @ 2015-07-16 14:51 ChuckLu 阅读(335) 评论(0) 推荐(0)
摘要: So far in this chapter,I have shown you different ways to create services,how to expose a service endpoint and metadata exchange endpoint,how to gener 阅读全文
posted @ 2015-07-16 14:02 ChuckLu 阅读(681) 评论(0) 推荐(0)
上一页 1 ··· 362 363 364 365 366 367 368 369 370 ··· 399 下一页