lenmom

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 43 下一页

2018年3月14日 #

摘要: using System; using System.Collections.Generic; using System.Management; using System.Runtime.InteropServices; using System.Text.RegularExpressions; n 阅读全文
posted @ 2018-03-14 14:55 老董 阅读(5894) 评论(0) 推荐(0)

2018年3月13日 #

摘要: // /// 获取网卡物理地址 /// /// public static string getMacAddr_Local() { string madAddr = null; ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); Manageme... 阅读全文
posted @ 2018-03-13 14:47 老董 阅读(1321) 评论(0) 推荐(0)

摘要: 最近学习过程中,想到提取系统硬件信息做一些验证,故而对网上提到的利用.NET System.Management类获取硬件信息做了进一步的学习、验证。验证是分别在4台电脑,XP SP3系统中进行,特将验证过程记录于此。 说明: 电脑1(联想品牌电脑); 电脑2(HP品牌电脑); 电脑3(联想品牌电脑 阅读全文
posted @ 2018-03-13 14:34 老董 阅读(23677) 评论(1) 推荐(0)

摘要: public class Computer { public static string CpuID; //1.cpu序列号 public static string MacAddress; //2.mac序列号 public static string DiskID; //3.硬盘id public static stri... 阅读全文
posted @ 2018-03-13 14:27 老董 阅读(326) 评论(0) 推荐(0)

2018年3月9日 #

摘要: 在目前的主流架构中,我们越来越多的看到web Api的存在,小巧,灵活,基于Http协议,使它在越来越多的微服务项目或者移动项目充当很好的service endpoint。 问题 以Asp.Net Web Api 为例,随着业务的扩展,产品的迭代,我们的web api也在随之变化,很多时候会出现多个 阅读全文
posted @ 2018-03-09 18:56 老董 阅读(288) 评论(0) 推荐(0)

摘要: 先预备一个类,用于Start时调用 public static class MyPreApplicationStart { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { if (filters ! 阅读全文
posted @ 2018-03-09 12:57 老董 阅读(220) 评论(0) 推荐(0)

2018年3月8日 #

摘要: Web Api in Orchard Web Api is available in Orchard. You can implement a web api to fit your needs in a custom module. Creating Api Controllers The pro 阅读全文
posted @ 2018-03-08 18:50 老董 阅读(221) 评论(0) 推荐(0)

摘要: What is Dependency Injection? A dependency is any object that another object requires. For example, it's common to define a repository that handles da 阅读全文
posted @ 2018-03-08 17:01 老董 阅读(348) 评论(0) 推荐(0)

摘要: 今天我关于常见的垃圾回收算法来做个总结,我们最常听到的是Java虚拟机里的垃圾回收机制,其实垃圾回收的概念最先并不是Java里首先提出来的, 垃圾回收这个概念很早就已经被提出来了,并且已经在其他语言中得到了应用。 关于垃圾回收的机制,这里不再解释,这篇文章我主要介绍常见的垃圾回收算法,当然还有其他的 阅读全文
posted @ 2018-03-08 13:11 老董 阅读(189) 评论(0) 推荐(0)

2018年3月6日 #

摘要: 为了使用方便,对Autofac container的简单封装,记录如下,备以后用或分享给大家,欢迎讨论! 使用方法如下: 阅读全文
posted @ 2018-03-06 15:41 老董 阅读(325) 评论(0) 推荐(0)

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 43 下一页