设置为自动启动的WindowService没有开机启动
摘要:当我们的服务依赖其他的服务才能启动时,我们需要给它添加依存关系。在你的serviceInstaller上点右键,选择属性, 设置ServicesDependedOn.当然你也可以在ProjectInstaller的InitializeComponent方法里添加代码,例子如下:this.serviceInstaller1.ServicesDependedOn = new string[] { "Eventlog", "WinMgmt","MMQ","Windows Management Instrumentation&quo
阅读全文
posted @
2012-01-12 14:08
李昀璟
阅读(503)
推荐(0)
PostSubmitter~在WEB应用程序以外的其他程序里提交Web请求的类
摘要:如果在WindowService等其他非Web应用里提交一个httpRequest,用这个类比较方便:PostSubmitterpost=newPostSubmitter();post.Url="http://seeker.dice.com/jobsearch/servlet/JobSearch";post.PostItems.Add("op","100");post.PostItems.Add("rel_code","1102");post.PostItems.Add("FREE_T
阅读全文
posted @
2011-12-28 10:22
李昀璟
阅读(476)
推荐(0)