Beispiel #1
0
        /// <summary>
        /// Finds the queue length of an AppPool.
        /// </summary>
        /// <param name="appPoolName">AppPool to find</param>
        /// <returns> The size of the AppPool queue length; or -1 if the apppool does not exist</returns>
        public static long AppPoolQueueLength(string appPoolName)
        {
            ApplicationPool appPool = IISVerifier.GetAppPool(appPoolName);

            if (null != appPool)
            {
                return(appPool.QueueLength);
            }
            else
            {
                return(-1);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Finds the proecess identity type of an AppPool.
        /// </summary>
        /// <param name="appPoolName">AppPool to find</param>
        /// <returns> The proecess identity type of the AppPool; or null if the apppool does not exist</returns>
        public static string AppPoolProcessIdentity(string appPoolName)
        {
            ApplicationPool appPool = IISVerifier.GetAppPool(appPoolName);

            if (null != appPool)
            {
                return(appPool.ProcessModel.IdentityType.ToString());
            }
            else
            {
                return(null);
            }
        }
Beispiel #3
0
 /// <summary>
 /// Checks if a AppPool exsts.
 /// </summary>
 /// <param name="appPoolName">AppPool to find</param>
 /// <returns> Return true/false </returns>
 public static bool AppPoolExists(string appPoolName)
 {
     return(null != IISVerifier.GetAppPool(appPoolName));
 }