public static void SetCurrentConfigDC(string serverName, string partitionFqdn) { if (string.IsNullOrEmpty(serverName)) { throw new ArgumentNullException("serverName"); } if (string.IsNullOrEmpty(partitionFqdn)) { throw new ArgumentNullException("partitionFqdn"); } TopologyProvider instance = TopologyProvider.GetInstance(); instance.SetConfigDC(partitionFqdn, serverName, instance.DefaultDCPort); }