﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-Leven's Blog-最新评论</title><link>http://www.cnblogs.com/leven/CommentsRSS.aspx</link><description>只谈技术</description><language>zh-cn</language><pubDate>Sun, 24 Oct 2010 07:33:50 GMT</pubDate><lastBuildDate>Sun, 24 Oct 2010 07:33:50 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:WCF开发-使用证书文件配置基于自定义X509证书验证的消息安全模式</title><link>http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942771</link><dc:creator>Leven</dc:creator><author>Leven</author><pubDate>Mon, 25 Oct 2010 09:57:21 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942771</guid><description><![CDATA[@sweethome
完全是可以实现的，但是默认验证中并未验证有效期，因此，需要在ServiceX509CertificateValidator的Validate方法中加上类似
[code=csharp]
if (DateTime.Now &lt; certificate.NotBefore || DateTime.Now &gt; certificate.NotAfter)
{
    throw new SecurityTokenException(&quot;Certificate is outof time.&quot;);
}
[/code]
这样的验证代码。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">Leven</a> 2010-10-25 17:57 <a href="http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942771#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:WCF开发-使用证书文件配置基于自定义X509证书验证的消息安全模式</title><link>http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942712</link><dc:creator>sweethome</dc:creator><author>sweethome</author><pubDate>Mon, 25 Oct 2010 09:04:01 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942712</guid><description><![CDATA[@Leven
感謝解答,還有一個問題,創建證書時-e 08/10/2020 表示這個證書將會于 08/10/2020 失效,這是否意味著到時候在ServiceX509CertificateValidator 驗證將會失敗而導致系統無法運行呢?

這可否成為系統授權的一種手段?也就是說,我希望我的系統給用戶使用一段時間,過期后用戶必須到我這辦理授權,不然就用不了.
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">sweethome</a> 2010-10-25 17:04 <a href="http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942712#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:WCF开发-使用证书文件配置基于自定义X509证书验证的消息安全模式</title><link>http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942519</link><dc:creator>Leven</dc:creator><author>Leven</author><pubDate>Mon, 25 Oct 2010 05:50:44 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942519</guid><description><![CDATA[@sweethome
确实如此。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">Leven</a> 2010-10-25 13:50 <a href="http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942519#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:WCF开发-使用证书文件配置基于自定义X509证书验证的消息安全模式</title><link>http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942341</link><dc:creator>sweethome</dc:creator><author>sweethome</author><pubDate>Mon, 25 Oct 2010 03:00:51 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942341</guid><description><![CDATA[这样是不是就意味着，服务端和客户端都不再需要在windows中安装证书了呢？
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">sweethome</a> 2010-10-25 11:00 <a href="http://www.cnblogs.com/leven/archive/2010/10/25/1859768.html#1942341#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:WCF开发-使用证书文件配置基于自定义X509证书验证的消息安全模式</title><link>http://www.cnblogs.com/leven/archive/2010/10/24/1859768.html#1942078</link><dc:creator>冰の酷龙</dc:creator><author>冰の酷龙</author><pubDate>Sun, 24 Oct 2010 15:21:50 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/10/24/1859768.html#1942078</guid><description><![CDATA[学习,正好项目里面有,可以拿来验证下.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">冰の酷龙</a> 2010-10-24 23:21 <a href="http://www.cnblogs.com/leven/archive/2010/10/24/1859768.html#1942078#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:国内首个基于Asp.Net MVC个人博客系统-LevenBlog开放源代码</title><link>http://www.cnblogs.com/leven/archive/2010/10/24/1339061.html#1941842</link><dc:creator>Leven</dc:creator><author>Leven</author><pubDate>Sun, 24 Oct 2010 07:17:46 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/10/24/1339061.html#1941842</guid><description><![CDATA[@Zippo-Snowflakes
项目是使用vs2008开发的，请使用vs2008打开即可。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">Leven</a> 2010-10-24 15:17 <a href="http://www.cnblogs.com/leven/archive/2010/10/24/1339061.html#1941842#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:在IIS7中应用Application Request Routing配置反向代理</title><link>http://www.cnblogs.com/leven/archive/2010/10/24/1599750.html#1941841</link><dc:creator>Leven</dc:creator><author>Leven</author><pubDate>Sun, 24 Oct 2010 07:17:05 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/10/24/1599750.html#1941841</guid><description><![CDATA[@unfeeling
502一般是服务提供端出现了问题才会出现的,我在实际使用中并未发现这些问题。
当然，配置错误也有可能。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">Leven</a> 2010-10-24 15:17 <a href="http://www.cnblogs.com/leven/archive/2010/10/24/1599750.html#1941841#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:在IIS7中应用Application Request Routing配置反向代理</title><link>http://www.cnblogs.com/leven/archive/2010/09/14/1599750.html#1916341</link><dc:creator>unfeeling</dc:creator><author>unfeeling</author><pubDate>Tue, 14 Sep 2010 06:45:18 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/09/14/1599750.html#1916341</guid><description><![CDATA[反向代理出现502什么情况呀，偶尔的 不是经常性<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">unfeeling</a> 2010-09-14 14:45 <a href="http://www.cnblogs.com/leven/archive/2010/09/14/1599750.html#1916341#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:国内首个基于Asp.Net MVC个人博客系统-LevenBlog开放源代码</title><link>http://www.cnblogs.com/leven/archive/2010/08/06/1339061.html#1888083</link><dc:creator>Zippo-Snowflakes</dc:creator><author>Zippo-Snowflakes</author><pubDate>Fri, 06 Aug 2010 01:06:07 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/08/06/1339061.html#1888083</guid><description><![CDATA[ 在vs2010中无法运行<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">Zippo-Snowflakes</a> 2010-08-06 09:06 <a href="http://www.cnblogs.com/leven/archive/2010/08/06/1339061.html#1888083#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:初试轻量级AOP框架 DecoratorSharp-另类的Hello World</title><link>http://www.cnblogs.com/leven/archive/2010/07/11/1734960.html#1868978</link><dc:creator>Leven</dc:creator><author>Leven</author><pubDate>Sun, 11 Jul 2010 06:23:44 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/07/11/1734960.html#1868978</guid><description><![CDATA[@风云
很好的建议，考虑实现，这样可以更方便实现代理
谢谢提供建议<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">Leven</a> 2010-07-11 14:23 <a href="http://www.cnblogs.com/leven/archive/2010/07/11/1734960.html#1868978#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:初试轻量级AOP框架 DecoratorSharp-另类的Hello World</title><link>http://www.cnblogs.com/leven/archive/2010/07/09/1734960.html#1867101</link><dc:creator>风云</dc:creator><author>风云</author><pubDate>Fri, 09 Jul 2010 00:48:22 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/07/09/1734960.html#1867101</guid><description><![CDATA[[quote]Leven：
@风云
这主意不错，有时间改进下。[/quote]

我再来提三个建议
  1. 支持对接口和抽象类进行代理
  2. 如果要求被代理的类是密封类，或者里面的所有方法都不是虚方法，那么如果该类实现了某一个接口，只要该接口里面的方法符合需要被拦截，那么就可以进行接口代理了
  3. 当一个类既可以支持继承代理又可以支持接口代理应该优先接口代理
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">风云</a> 2010-07-09 08:48 <a href="http://www.cnblogs.com/leven/archive/2010/07/09/1734960.html#1867101#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:体验AspNet MVC Preview5(2)-实战自定义View及多ViewEngine协作</title><link>http://www.cnblogs.com/leven/archive/2010/07/08/1280097.html#1866800</link><dc:creator>一线风</dc:creator><author>一线风</author><pubDate>Thu, 08 Jul 2010 07:17:56 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/07/08/1280097.html#1866800</guid><description><![CDATA[@Leven
呵~ 我写的时候确实是不能直接用sb.Replace这样的，如果这样，结果就是没有替换，不知为啥~ 

我现在用的是XSltViewEngine，可是用HtmlHelper方法时好像无法正常的在Xslt模板中使用，问题地址：http://mvccontrib.codeplex.com/workitem/7041

不知楼主有解决的办法没？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">一线风</a> 2010-07-08 15:17 <a href="http://www.cnblogs.com/leven/archive/2010/07/08/1280097.html#1866800#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:初试轻量级AOP框架 DecoratorSharp-另类的Hello World</title><link>http://www.cnblogs.com/leven/archive/2010/07/08/1734960.html#1866709</link><dc:creator>Leven</dc:creator><author>Leven</author><pubDate>Thu, 08 Jul 2010 05:14:50 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/07/08/1734960.html#1866709</guid><description><![CDATA[@风云
这主意不错，有时间改进下。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">Leven</a> 2010-07-08 13:14 <a href="http://www.cnblogs.com/leven/archive/2010/07/08/1734960.html#1866709#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:在IIS7中应用Application Request Routing配置反向代理</title><link>http://www.cnblogs.com/leven/archive/2010/07/08/1599750.html#1866706</link><dc:creator>Leven</dc:creator><author>Leven</author><pubDate>Thu, 08 Jul 2010 05:13:57 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/07/08/1599750.html#1866706</guid><description><![CDATA[@LanceZhang
实际上，arr中的反向代理也是基于UrlRewrite模块的，不过Rewrite和反向代理还是有很大的本质区别的，反向代理一般代理其他程序或者服务器的url，而rewrite一般只处理本程序的url,当然，实现原理也大大不同。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">Leven</a> 2010-07-08 13:13 <a href="http://www.cnblogs.com/leven/archive/2010/07/08/1599750.html#1866706#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:体验AspNet MVC Preview5(2)-实战自定义View及多ViewEngine协作</title><link>http://www.cnblogs.com/leven/archive/2010/07/08/1280097.html#1866704</link><dc:creator>Leven</dc:creator><author>Leven</author><pubDate>Thu, 08 Jul 2010 05:12:25 GMT</pubDate><guid>http://www.cnblogs.com/leven/archive/2010/07/08/1280097.html#1866704</guid><description><![CDATA[@一线风
实践一下就可以知道是否正常了。
Label是内置标签，没法像viewengine这样随意处理，不过可以自定义其他扩展方法进行处理。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/leven/" target="_blank">Leven</a> 2010-07-08 13:12 <a href="http://www.cnblogs.com/leven/archive/2010/07/08/1280097.html#1866704#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
