internal ConnectionManagementSectionInternal(ConnectionManagementSection section) { if (section.ConnectionManagement.Count > 0) { this.connectionManagement = new Hashtable(section.ConnectionManagement.Count); foreach (ConnectionManagementElement element in section.ConnectionManagement) { this.connectionManagement[element.Address] = element.MaxConnection; } } }
internal ConnectionManagementSectionInternal(ConnectionManagementSection section) { if (section.ConnectionManagement.Count > 0) { this.connectionManagement = new Hashtable(section.ConnectionManagement.Count); foreach (ConnectionManagementElement connectionManagementElement in section.ConnectionManagement) { this.connectionManagement[connectionManagementElement.Address] = connectionManagementElement.MaxConnection; } } }
internal static ConnectionManagementSectionInternal GetSection() { lock (ClassSyncObject) { ConnectionManagementSection section = System.Configuration.PrivilegedConfigurationManager.GetSection(ConfigurationStrings.ConnectionManagementSectionPath) as ConnectionManagementSection; if (section == null) { return(null); } return(new ConnectionManagementSectionInternal(section)); } }