Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. List<ApplicationPool> pools = new List<ApplicationPool>();
  2. List<WorkerProcess> processes = new List<WorkerProcess>();
  3.  
  4. ServerManager serverManager = new ServerManager();
  5. ApplicationPoolCollection appPools = serverManager.ApplicationPools;
  6.  
  7. foreach (ApplicationPool Pool in appPools)
  8. {
  9. pools.Add(Pool);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement