02 2017 档案
摘要:自动创建每周运行一次的计划任务 创建计划任务可用at,schtasks命令,schtasks提供了很多参数 命令schtasks SCHTASKS /Create [/S system [/U username [/P [password]]]] [/RU username [/RP passwor
阅读全文
摘要:winform_webApiSelfHost 窗本构造函数中添加以下代码: App.config文件中添加以下内容: Create an OWIN configuration handler Add API controllers Add code to start/stop the WebAPI
阅读全文
摘要:Monitor对象1.Monitor.Enter(object)方法是获取 锁,Monitor.Exit(object)方法是释放锁,这就是Monitor最常用的两个方法,当然在使用过程中为了避免获取锁之后因为异常,致锁 无法释放,所以需要在try{} catch(){}之后的finally{}结构
阅读全文