随笔分类 -  asp.net

.net相关知识
Newtonsoft.Json异常处理
摘要:var resultStr="{\"Success\":false,\"Data\":1}"; GetRequestPriceRendaInfo getrequestpriceinfo = Newtonsoft.Json.JsonConvert.DeserializeObject<GetReques 阅读全文
posted @ 2016-09-20 10:35 wolf12 阅读(2289) 评论(1) 推荐(0)
.net服务端信息
摘要:if (Session["wolf"]==null) { Session["wolf"] = Guid.NewGuid(); } Label0.Text = "请求开始时间:" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); Label1.Text = 阅读全文
posted @ 2016-09-01 17:16 wolf12 阅读(240) 评论(0) 推荐(0)
.net5的异步
摘要:public static class TaskAsyncHelper { /// <summary> /// 将一个方法function异步运行,在执行完毕时执行回调callback /// </summary> /// <param name="function">异步方法,该方法没有参数,返回 阅读全文
posted @ 2016-05-21 07:19 wolf12 阅读(285) 评论(0) 推荐(0)
IIS理解
摘要:WEB开发基础 1IIS原理 IIS的本质其实就是一个sorket的服务器,浏览器就是一个sorket的客户端,浏览器发送请求信息给IIS,IIS返回信息给浏览器显示,就这么简单。 1http.sys,这个是上个IIS6里的一个模块,主要作用是用来接受浏览器发送过来的请求。用要用一个队列来管理发送过 阅读全文
posted @ 2016-01-19 21:12 wolf12 阅读(566) 评论(0) 推荐(1)
sqldbhelper
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Configuration;using System. 阅读全文
posted @ 2015-07-31 08:41 wolf12 阅读(217) 评论(0) 推荐(0)
async await
摘要:public static Task<double> GetValueAsync(double num1, double num2) { return Task.Run(() => { Console.WriteLine(AppDomain.GetCurrentThreadId()); for (i 阅读全文
posted @ 2015-04-24 00:01 wolf12 阅读(132) 评论(0) 推荐(0)
iis到w3wp的数据流及工作原理
摘要:HTTP.sys->IO线程-CLR线程池中的worker线程处理IO线程只负责把请求交给Worker线程或者放入进程池级别的队列,然后又去HTTP.SYS的队列中处理其它的请求 阅读全文
posted @ 2015-04-22 15:48 wolf12 阅读(263) 评论(0) 推荐(0)
.net多线程的发展
摘要:APM和EAP是在async/await之前的两种不同的异步编程模式。 APM如果不阻塞主线程,那么完成通知(回调)就会执行在另外一个线程中,从而给我们更新UI带来一定的问题。 EAP的通知事件是在主线程中执行的,不会存在UI交互的问题。 最后,我们还学习了在Winform下不同线程之间交互的问题, 阅读全文
posted @ 2015-04-22 00:26 wolf12 阅读(208) 评论(0) 推荐(0)
C# 快速反射 IL
摘要:public class FastInvoke { public delegate object FastInvokeHandler(object target, object[] paramters); static object InvokeMethod(FastInvokeHandler in 阅读全文
posted @ 2015-03-31 00:00 wolf12 阅读(1144) 评论(0) 推荐(1)
C#实现判断字符是否为中文
摘要:C#实现判断字符是否为中文 (2012-08-14 14:25:28) C#实现判断字符是否为中文 标签: gb2312 big5编码 gbk编码 判断 汉字 杂谈 分类: 技术 gb2312 big5编码 gbk编码 判断 汉字 杂谈 protected bool IsChineseLetter( 阅读全文
posted @ 2014-11-20 13:45 wolf12 阅读(769) 评论(0) 推荐(0)
Interlocked.CompareExchange
摘要:class SourceManager { private SourceManager() { } private static SourceManager sourceManager; public static SourceManager Instance { get { if (sourceM 阅读全文
posted @ 2014-11-03 23:15 wolf12 阅读(873) 评论(0) 推荐(0)
Ihttphander获取session
摘要:实现IRequiresSessionState就OK 阅读全文
posted @ 2014-08-16 14:44 wolf12 阅读(107) 评论(0) 推荐(0)
C# 发邮件
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2014-05-06 15:50 wolf12 阅读(224) 评论(0) 推荐(0)