예제 #1
0
        /// <summary>
        /// Sets the values of the parameters specified in the collection
        /// </summary>
        /// <param name="collection">Collection containg the parametes to set</param>
        public void GetValues(NameValuePairCollection collection)
        {
            if (collection.ContainsKey(MaxConns))
            {
                collection.GetPair(MaxConns).Value = this.MaximumConnections.ToString();
            }

            if (collection.ContainsKey(MaxReqs))
            {
                collection.GetPair(MaxReqs).Value = this.MaximumRequests.ToString();
            }

            if (collection.ContainsKey(MpxsConns))
            {
                collection.GetPair(MpxsConns).Value = this.SupportMultiplexedConnection ? "1" : "0";
            }
        }