public static void AddServer(string serverAddress, int port) { lock (locker) { var farmName = WebFarmConfiguration.FarmName; IISWebFarmConfigurationUtils.AddServer(farmName, serverAddress, port); } }
public static void AddServers(IEnumerable <string> serverAddresses, int port) { lock (locker) { var farmName = WebFarmConfiguration.FarmName; foreach (var serverAddress in serverAddresses) { IISWebFarmConfigurationUtils.AddServer(farmName, serverAddress, port); } } }