我爱我老婆
摘要: User cache to hold connectionhttp://blogs.msdn.com/b/wenlong/archive/2007/10/27/performance-improvement-of-wcf-client-proxy-creation-and-best-practices.aspxno sleep of ThreadPoolhttp://blogs.msdn.com/b/wenlong/archive/2010/02/11/why-does-wcf-become-slow-after-being-idle-for-15-seconds.aspxhttp://msd 阅读全文
posted @ 2011-11-17 11:39 DataFlow 阅读(174) 评论(0) 推荐(0) 编辑
摘要: http://blogs.msdn.com/b/webtopics/archive/2009/02/13/asp-net-hang-in-iis-7-0.aspxhttp://blogs.msdn.com/b/tmarq/archive/2007/07/21/asp-net-thread-usage-on-iis-7-0-and-6-0.aspx 阅读全文
posted @ 2011-09-04 11:16 DataFlow 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1. 自动格式化输出的XML: <xsl:strip-space elements="*"/>2. match 所有存在i:nil属性的节点: <xsl:template match="@*|node()[@i:nil]"</xsl:template>3. 在所有节点中查找: <xsl:temp[late match="@*|node()">4. 过滤所有以'hello'结尾的节点:<xsl:if test="substring(name(),string-le 阅读全文
posted @ 2011-08-15 10:23 DataFlow 阅读(155) 评论(0) 推荐(0) 编辑
摘要: What's different:1. 数组不为空,但其中的元素均为空时:如Email[]; XmlSerializer:nothing. DataContractSerializer Datacontract出来的xml中没有Attribute, 像是为提高那10%的性能Datacontract ... 阅读全文
posted @ 2011-08-15 10:08 DataFlow 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1. 如果在xml中一个complexType的属性中包含一个属性组A,而在属性组A中又包含属性组B,则B的所有属性在生成类文件时,会被忽略。 微软对此也有详细说明:http://msdn.microsoft.com/en-us/library/484632e7(v=vs.80).aspx 有个解决方法是写一个xsl文件,将所有嵌套的属性组遍历出来,写在最外层,然后再对该文件生成.2. 明明赋了值,也有xmlAttribute,但是序列化出来的文件里,该属性的值却丢失了i.e. XSD: <xs:attribute name="Start" type="xs 阅读全文
posted @ 2011-07-26 09:18 DataFlow 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 在DataContractSerializer之前有XMLSerializer, 网上关于此的比较有:http://www.danrigsby.com/blog/index.php/2008/03/07/xmlserializer-vs-datacontractserializer-serialization-in-wcf/亮点在此: 10%的性能提升.因为DataContractSerializer不支持一些xsd标签:group, all, choice...http://msdn.microsoft.com/zh-cn/library/ms733112.aspx如果要使用DataCont 阅读全文
posted @ 2011-07-21 14:38 DataFlow 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 取客户端的IP地址:var remote = System.ServiceModel.OperationContext.Current.IncomingMessageProperties[System.ServiceModel.Channels.RemoteEndpointMessageProperty.Name] as System.ServiceModel.Channels.RemoteEndpointMessageProperty;varip = remote.Address;取请求流长度:System.ServiceModel.Web.WebOperationContext.Curre 阅读全文
posted @ 2011-07-05 16:41 DataFlow 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Peforce 阅读全文
posted @ 2011-06-17 16:16 DataFlow 阅读(314) 评论(0) 推荐(0) 编辑
摘要: findstr is a useful command in bat file. for instances:findstr /NI ^error.*: %DEBUG_LOG% 1>nul 2>&1It matches error info via regular expression, if matched, build system will thought the build encountered a error, but sometimes, some invalid 'error' words will also be matched:Inval 阅读全文
posted @ 2011-06-07 14:40 DataFlow 阅读(1141) 评论(0) 推荐(0) 编辑
摘要: 经过一个星期的准备,今天在公司内部讲了2个小时的.Net 框架,主要是面向C++开发人员,介绍了.Net的背景,发展,FCL, CLR, JIT, GC, Data Type, String, Array, Flow control, Exception handler, 有兴趣的可以下载,继续完善,让更多人更好地了解.Net下载地址:/Files/DataFlow/NET.ppt 阅读全文
posted @ 2011-02-24 18:00 DataFlow 阅读(253) 评论(0) 推荐(0) 编辑