Example #1
0
        /// <summary>
        /// Public ctor.
        /// </summary>
        /// <param name="maxConcurrentConnections">The maximum number of concurrent connections allowed</param>
        public GettUser(int maxConcurrentConnections = 2)
        {
            // The maximum number of concurrent connections allowed. The default value is 2.
            if (maxConcurrentConnections != 2)
            {
                ServicePointManager.DefaultConnectionLimit = maxConcurrentConnections;
            }

            _shares = new GettShares(this);
        }
Example #2
0
        /// <summary>
        /// Public ctor.
        /// </summary>
        /// <param name="maxConcurrentConnections">The maximum number of concurrent connections allowed</param>
        public GettUser(int maxConcurrentConnections = 2)
        {
            // The maximum number of concurrent connections allowed. The default value is 2.
            if (maxConcurrentConnections != 2)
            {
                ServicePointManager.DefaultConnectionLimit = maxConcurrentConnections;
            }

            _shares = new GettShares(this);
        }