汤姆熊猫

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年10月20日

摘要: using System.Web.Services;public class ServerUsage : WebService { [ WebMethod(Description="Number of times this service has been accessed.") ] public int ServiceUsage() { // If the XML Web service method hasn't been accessed, // initialize it to 1. if (Application["appMyServiceUsa 阅读全文
posted @ 2011-10-20 17:13 汤姆熊猫 阅读(352) 评论(0) 推荐(0)

摘要: public int GetAppNumber(string appName) { Int32 appPoolNum = 0; DirectoryEntry w3svc = new DirectoryEntry("IIS://localhost/W3SVC); foreach (DirectoryEntry child in w3svc.Children) { if (child.SchemaClassName == "IIsWebServer")... 阅读全文
posted @ 2011-10-20 11:00 汤姆熊猫 阅读(389) 评论(0) 推荐(0)