<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>旁门左道 &#187; .NET</title>
	<atom:link href="http://log.medcl.net/item/category/dode/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://log.medcl.net</link>
	<description>记录生活</description>
	<lastBuildDate>Tue, 29 Nov 2011 15:39:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>how to use dottrace&#039;s remote debugging</title>
		<link>http://log.medcl.net/item/2011/09/how-to-use-dottrace-s-remote-debugging/</link>
		<comments>http://log.medcl.net/item/2011/09/how-to-use-dottrace-s-remote-debugging/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 16:56:27 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[dottrace]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=905</guid>
		<description><![CDATA[加参数 /console 启动，每次输入phrase来进行验证，或者使用目标系统的用户来登录 或者安装成服务，但是服务的方式就不能使用phrase来进行验证了。 windows7下正常连接调试器，但是windows2008R2+IIS7调试器连接失败，据小马哥说重启之后好使了，未试过。 Tags: debug, dottrace]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2011/09/how-to-use-dottrace-s-remote-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This header must be modified using the appropriate property</title>
		<link>http://log.medcl.net/item/2011/09/this-header-must-be-modified-using-the-appropriate-property/</link>
		<comments>http://log.medcl.net/item/2011/09/this-header-must-be-modified-using-the-appropriate-property/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 16:49:13 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=904</guid>
		<description><![CDATA[This header must be modified using the appropriate property. Parameter name: name Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: This header must be modified using the appropriate property. [...]]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2011/09/this-header-must-be-modified-using-the-appropriate-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>log4net udpappender 广播设置</title>
		<link>http://log.medcl.net/item/2011/08/log4net-udpappender-radio-set/</link>
		<comments>http://log.medcl.net/item/2011/08/log4net-udpappender-radio-set/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 11:04:54 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[log4net]]></category>
		<category><![CDATA[udpappender]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=772</guid>
		<description><![CDATA[配置文件里面添加： &#60;appender name=&#34;UdpAppender&#34; type=&#34;log4net.Appender.UdpAppender&#34;&#62; &#60;localPort value=&#34;10419&#34; /&#62; &#60;remoteAddress value=&#34;127.0.0.1&#34; /&#62; &#60;remotePort value=&#34;1009&#34; /&#62; &#60;layout type=&#34;log4net.Layout.PatternLayout, log4net&#34;&#62; &#60;conversionPattern value=&#34;&#38;lt;log&#38;gt;&#38;lt;Level&#38;gt;%level&#38;lt;/Level&#38;gt;&#38;lt;Source&#38;gt;%logger&#38;lt;/Source&#38;gt;&#38;lt;Properties&#38;gt;%property{NDC}&#38;lt;/Properties&#38;gt;&#38;lt;LogDate&#38;gt;%date&#38;lt;/LogDate&#38;gt;&#38;lt;Message&#38;gt;&#38;lt;![CDATA[%message]]&#38;gt;&#38;lt;/Message&#38;gt;&#38;lt;Exception&#38;gt;&#38;lt;![CDATA[%exception]]&#38;gt;&#38;lt;/Exception&#38;gt;&#38;lt;/log&#38;gt;&#34; /&#62; &#60;/layout&#62; &#60;/appender&#62; ... &#60;root&#62; ... &#60;appender-ref ref=&#34;UdpAppender&#34; /&#62; ... &#60;/root&#62; 如果要广播到局域网，你的ip段是192.168.1.X，则设置 为 文档说明在这里：http://logging.apache.org/log4net/release/sdk/log4net.Appender.UdpAppender.RemoteAddress.html 另外在windows7下，还因为ipv6的关系，如果使用localhost，可能得到的ip不是127.0.0.1而是::1，并且log4net目前貌似不支持ipv6的神址，所以必须host里面去掉ipv6的映射。 Tags: log4net, udpappender]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2011/08/log4net-udpappender-radio-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wix tips</title>
		<link>http://log.medcl.net/item/2011/04/wix-tips/</link>
		<comments>http://log.medcl.net/item/2011/04/wix-tips/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 14:01:46 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[wix]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=706</guid>
		<description><![CDATA[设置property的属性是否直接被更改： Indirect="yes" ,INSTALLDIR为你的目录Id 访问安装的目标文件夹，session["INSTALLDIR"] 自动更新：produc、package的Id不能为“*”，然后product的upgradeCode和upgradeCode必须要一致 customaction要加 Execute="immediate" 如果需要获取属性值的时候,确保至少在Before='InstallFinalize' 时候执行相应的操作 Tags: .NET, installer, wix]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2011/04/wix-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.net AOP实现</title>
		<link>http://log.medcl.net/item/2011/03/aop-net-realized/</link>
		<comments>http://log.medcl.net/item/2011/03/aop-net-realized/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 13:27:31 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[aop]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=696</guid>
		<description><![CDATA[http://www.uml.org.cn/net/201004213.asp using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Contexts; using System.Runtime.Remoting.Messaging; using System.Text; &#160; namespace AopTests &#123; &#91;AttributeUsage&#40;AttributeTargets.Class&#41;&#93; public class AopAttribute:ContextAttribute &#123; public AopAttribute&#40;&#41; : base&#40;&#34;AOP&#34;&#41; &#123; &#125; public override void GetPropertiesForNewContext&#40;System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg&#41; &#123; ctorMsg.ContextProperties.Add&#40;new AopProperty&#40;&#41;&#41;; &#125; &#125; &#160; public class AopProperty:IContextProperty,IContributeObjectSink &#123; public bool IsNewContextOK&#40;Context newCtx&#41; &#123; return true; &#125; &#160; public [...]]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2011/03/aop-net-realized/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RabbitMQ .NET Client使用范例</title>
		<link>http://log.medcl.net/item/2011/01/rabbitmq-net-client-to-use-examples/</link>
		<comments>http://log.medcl.net/item/2011/01/rabbitmq-net-client-to-use-examples/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 14:12:23 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[试试]]></category>
		<category><![CDATA[MQ]]></category>
		<category><![CDATA[queue]]></category>
		<category><![CDATA[RabbitMQ]]></category>
		<category><![CDATA[试验]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=646</guid>
		<description><![CDATA[今天试验了下RabbitMQ的.NET客户端的调用，包括简单的发送和获取以及订阅方式，不过RabbitMQ的持久化好像有些问题，重启服务之后，数据丢失一部分，很奇怪，改天再仔细研究下。 /* * Created by SharpDevelop. * User: medcl * Date: 2011/1/28 * Time: 10:13 * REF:rabbitmq-dotnet-client-2.2.0-user-guide.pdf */ using System; using RabbitMQ.Client; &#160; namespace RabbitMQTests &#123; class Program &#123; public static void Main&#40;string&#91;&#93; args&#41; &#123; &#160; if&#40;args.Length&#60;1&#41;&#123; Console.WriteLine&#40;&#34;Invalid Arguments&#34;&#41;; Console.WriteLine&#40;&#34;HELP:&#34;&#41;; Console.WriteLine&#40;&#34;pub 'your message' --sending message to queue.&#34;&#41;; Console.WriteLine&#40;&#34;gen 100 --genereates 100 sample data.&#34;&#41;; Console.WriteLine&#40;&#34;getall true [...]]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2011/01/rabbitmq-net-client-to-use-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSIL指令速查</title>
		<link>http://log.medcl.net/item/2011/01/quick-msil-instruction/</link>
		<comments>http://log.medcl.net/item/2011/01/quick-msil-instruction/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 08:48:14 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[msil]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=642</guid>
		<description><![CDATA[蔡學鏞的大內高手專欄里的这篇:.NET中間語言（IL）是非常好的入门资料，推荐啊。 MSIL指令速查（from:http://www.cnblogs.com/longgel/archive/2010/05/19/1739231.html） Add 将两个值相加并将结果推送到计算堆栈上。 Add_Ovf 将两个整数相加，执行溢出检查，并且将结果推送到计算堆栈上。 Add_Ovf_Un 将两个无符号整数值相加，执行溢出检查，并且将结果推送到计算堆栈上。 And 计算两个值的按位“与”并将结果推送到计算堆栈上。 Arglist 返回指向当前方法的参数列表的非托管指针。 Beq 如果两个值相等，则将控制转移到目标指令。 Beq_S 如果两个值相等，则将控制转移到目标指令（短格式）。 Bge 如果第一个值大于或等于第二个值，则将控制转移到目标指令。 Bge_S 如果第一个值大于或等于第二个值，则将控制转移到目标指令（短格式）。 Bge_Un 当比较无符号整数值或不可排序的浮点型值时，如果第一个值大于第二个值，则将控制转移到目标指令。 Bge_Un_S 当比较无符号整数值或不可排序的浮点型值时，如果第一个值大于第二个值，则将控制转移到目标指令（短格式）。 Bgt 如果第一个值大于第二个值，则将控制转移到目标指令。 Bgt_S 如果第一个值大于第二个值，则将控制转移到目标指令（短格式）。 Bgt_Un 当比较无符号整数值或不可排序的浮点型值时，如果第一个值大于第二个值，则将控制转移到目标指令。 Bgt_Un_S 当比较无符号整数值或不可排序的浮点型值时，如果第一个值大于第二个值，则将控制转移到目标指令（短格式）。 Ble 如果第一个值小于或等于第二个值，则将控制转移到目标指令。 Ble_S 如果第一个值小于或等于第二个值，则将控制转移到目标指令（短格式）。 Ble_Un 当比较无符号整数值或不可排序的浮点型值时，如果第一个值小于或等于第二个值，则将控制转移到目标指令。 Ble_Un_S 当比较无符号整数值或不可排序的浮点值时，如果第一个值小于或等于第二个值，则将控制权转移到目标指令（短格式）。 Blt 如果第一个值小于第二个值，则将控制转移到目标指令。 Blt_S 如果第一个值小于第二个值，则将控制转移到目标指令（短格式）。 Blt_Un 当比较无符号整数值或不可排序的浮点型值时，如果第一个值小于第二个值，则将控制转移到目标指令。 Blt_Un_S 当比较无符号整数值或不可排序的浮点型值时，如果第一个值小于第二个值，则将控制转移到目标指令（短格式）。 Bne_Un 当两个无符号整数值或不可排序的浮点型值不相等时，将控制转移到目标指令。 Bne_Un_S 当两个无符号整数值或不可排序的浮点型值不相等时，将控制转移到目标指令（短格式）。 Box 将值类转换为对象引用（O 类型）。 [...]]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2011/01/quick-msil-instruction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ElasticSeach.Client Updated！</title>
		<link>http://log.medcl.net/item/2011/01/elasticseach-client-updated/</link>
		<comments>http://log.medcl.net/item/2011/01/elasticseach-client-updated/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 14:44:42 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[小道消息]]></category>
		<category><![CDATA[搜索]]></category>
		<category><![CDATA[资源分享]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[elasticsearch]]></category>
		<category><![CDATA[ElasticSearch.NET]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=637</guid>
		<description><![CDATA[ElasticSeach.Client客户端更新了，支持索引模板了，cool~，下载地址：http://github.com/medcl/ElasticSearch.Net ElasticSearch IndexTemplate帮助文档。 创建一个索引模板： var tempkey = &#34;test_template_key1&#34;; var template = new TemplateSetting&#40;tempkey&#41;; template.Template = &#34;business_*&#34;;//支持通配符，假设所有business开头的索引自动使用如下的索引设置（setting和mapping) template.IndexSetting = new IndexSetting&#40;3, 2&#41;; &#160; var type1 = new TypeSetting&#40;&#34;mytype&#34;&#41; &#123; &#125;; type1.CreateNumField&#40;&#34;identity&#34;, NumType.Float&#41;; type1.CreateDateField&#40;&#34;datetime&#34;&#41;; &#160; var type2 = new TypeSetting&#40;&#34;mypersontype&#34;&#41;; type2.CreateStringField&#40;&#34;personid&#34;&#41;; &#160; type2.SourceSetting = new SourceSetting&#40;&#41;; type2.SourceSetting.Enabled = false; &#160; template.AddTypeSetting&#40;type1&#41;; template.AddTypeSetting&#40;type2&#41;; result = ElasticSearchClient.Instance.CreateTemplate&#40;tempkey, template&#41;; 基于索引模板的创建索引（以后不需要做重复的索引Mapping操作了,yeah）： [...]]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2011/01/elasticseach-client-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ninject单例及属性注入示例</title>
		<link>http://log.medcl.net/item/2010/11/ninject-single-injection-of-sample-cases-and-property/</link>
		<comments>http://log.medcl.net/item/2010/11/ninject-single-injection-of-sample-cases-and-property/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 10:42:05 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Ninject]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=619</guid>
		<description><![CDATA[/* * Created by SharpDevelop. * User: medcl * Date: 2010/11/17 * Time: 18:10 * */ using System; using Ninject; &#160; namespace NinjectTests &#123; //ref http://blog.fh-kaernten.at/wehr/2010/04/27/ninject-the-first-contact/ &#160; public class Manager&#123; &#160; int a=0; public void DoSomething&#40;&#41;&#123; a++; Console.WriteLine&#40;&#34;zzzz...zzz...,{0}&#34;,a&#41;; &#125; &#125; &#160; public class Boss&#123; &#160; &#91;Inject&#93; public Manager TheManager&#123;set;get;&#125; &#160; &#125; &#160; class Program &#123; [...]]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2010/11/ninject-single-injection-of-sample-cases-and-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System.Lazy in .net 4.0</title>
		<link>http://log.medcl.net/item/2010/11/system-lazy-u003ctu003e/</link>
		<comments>http://log.medcl.net/item/2010/11/system-lazy-u003ctu003e/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 07:32:23 +0000</pubDate>
		<dc:creator>medcl</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[.net 4.0]]></category>

		<guid isPermaLink="false">http://log.medcl.net/?p=614</guid>
		<description><![CDATA[System.Lazy,.net4.0里的新玩意，类型延迟初始化，有意思。 http://msdn.microsoft.com/en-us/library/dd642331.aspx http://msdn.microsoft.com/en-us/library/dd997286 using System; &#160; namespace SytemLazyTest &#123; &#160; class People&#123; &#160; public People&#40;&#41;&#123; &#160; Console.WriteLine&#40;&#34;working....&#34;&#41;; Console.WriteLine&#40;&#34;yea,finished!&#34;&#41;; &#160; &#125; &#160; public string Name; &#160; public void Go&#40;&#41;&#123; Console.WriteLine&#40;&#34;well,let's go home!&#34;&#41;; &#125; &#160; &#125; &#160; class Program &#123; public static void Main&#40;string&#91;&#93; args&#41; &#123; &#160; Console.WriteLine&#40;&#34;boss:hey,you guys must finish your job today!&#34;&#41;; &#160; Console.WriteLine&#40;&#34;non lazy&#34;&#41;; [...]]]></description>
		<wfw:commentRss>http://log.medcl.net/item/2010/11/system-lazy-u003ctu003e/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

