摘要:
finally 块用于清除 try 块中分配的任何资源,以及运行任何即使在发生异常时也必须执行的代码 阅读全文
posted @ 2015-06-24 15:27
软件开发学习分享
阅读(381)
评论(0)
推荐(0)
摘要:
HttpWebRequest使用证书请求//是否使用证书 if (isUseCert) { string path = HttpContext.Current.Request.PhysicalApplicationPath; X509Certificate2 cert = new X509Certi... 阅读全文
posted @ 2015-06-24 15:19
软件开发学习分享
阅读(1816)
评论(1)
推荐(1)
摘要:
public ActionResult Index() { string url = "Https://www.baodu.com"; bool isOK = false; if (url.StartsWith("https", StringComparison.OrdinalIgnoreCase)... 阅读全文
posted @ 2015-06-24 15:14
软件开发学习分享
阅读(648)
评论(0)
推荐(1)
摘要:
if (url.StartsWith("https", StringComparison.OrdinalIgnoreCase)) 阅读全文
posted @ 2015-06-24 15:03
软件开发学习分享
阅读(220)
评论(0)
推荐(0)
摘要:
System.GC.Collect();//垃圾回收,回收没有正常关闭的http连接 阅读全文
posted @ 2015-06-24 15:01
软件开发学习分享
阅读(1420)
评论(0)
推荐(0)
摘要:
C# 使用 X.509 v.3 证书的方法。public static void Main() { // The path to the certificate. string Certificate = "Certificate.cer"; // Load the certificate into... 阅读全文
posted @ 2015-06-24 14:49
软件开发学习分享
阅读(1041)
评论(0)
推荐(0)
摘要:
in prep.1. [表示地点、场所、位置等]在…里面;在…内部;在…上:例句: in the room 在房间里2. [表示时间]在…期间;在(一段时间)以内;过…之久:例句: in summer 在夏天in 3. [表示状态]在…状态中:例句:in progress在进行中4. [表示某抽象... 阅读全文
posted @ 2015-06-24 10:23
软件开发学习分享
阅读(563)
评论(0)
推荐(0)
摘要:
在几点:at xx:xx ,在那月: in Dec./Jan.……, 在那日:on Thur./Mon.……,on Jan. 16th时间前面 at, 年月日前面如果有具体的日子,就是具体的哪一天则用on.几点:at xx:xx(时间),那月:in December,那日:on Friday,那月那... 阅读全文
posted @ 2015-06-24 09:58
软件开发学习分享
阅读(427)
评论(0)
推荐(0)
摘要:
启动 Redis 服务 src/redis-server或者src/redis-server redis.confsrc/redis-server redis.conf 1>log.log 2>errlog.log1为标准输出,2为错误输出 将 Redis 作为 Linux 服务随机启动 vi /e... 阅读全文
posted @ 2015-06-24 09:16
软件开发学习分享
阅读(152)
评论(0)
推荐(0)
浙公网安备 33010602011771号