/// <summary>
        /// Resizes the specified pool
        /// </summary>
        /// <param name="parameters">The parameters to use when resizing the pool</param>
        public void ResizePool(PoolResizeParameters parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException("parameters");
            }

            string poolName = parameters.Pool == null ? parameters.PoolName : parameters.Pool.Name;

            WriteVerbose(string.Format(Resources.SBPR_ResizingPool, poolName, parameters.TargetDedicated));
            using (IPoolManager poolManager = parameters.Context.BatchOMClient.OpenPoolManager())
            {
                poolManager.ResizePool(poolName, parameters.TargetDedicated, parameters.ResizeTimeout, parameters.DeallocationOption, parameters.AdditionalBehaviors);
            }
        }