private void SetConnectServerFromSRVRecords()
{
// check we have a response
if (_SRVRecords != null && _SRVRecords.Length > 0)
{
//SRVRecord srv = _SRVRecords[0];
_currentSRVRecord = PickSRVRecord();
this.Port = _currentSRVRecord.Port;
this.ConnectServer = _currentSRVRecord.Target;
}
else
{
// no SRV-Records set
_currentSRVRecord = null;
this.ConnectServer = null;
}
}