12 2010 档案
IIS的MaxConnection的验证
摘要:最近公司有位仁兄写了一个监控IIS的软件,里面提到一个连接数, 此连接数主要是收集WMI信息,把代码写一下: // 取到IIS的各个站点 System.Management.ManagementClass mc = new System.Management.ManagementClass("Win32_PerfFormattedData_W3SVC_WebService");// 每个站点foreach (System.Management.ManagementObject obj in mc.GetInstances()){// 这里就是每个站点当前的连接数 Convert.ToInt64
阅读全文
百钱百鸡 LINQ取得现在时间 Trim的解释
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--百钱百鸡意思是说:去菜市场买鸡,大鸡3元一只,小鸡1元三只,求怎么才能用100元刚好买100只鸡,要求用任意程序实现!求达人代码inty=100/3;for(inti=1;iy;i++){inta=100-3*i;if(a*3+i==100){Console.WriteLine("大:"+i+"金额"+i*3+"小:"+3*a+"金额"+a);Console.ReadLine();}}使用lin
阅读全文
浙公网安备 33010602011771号