public void AddSRVResult(SIPDNSServiceResult sipSRVResult) { if (SIPSRVResults == null) { SIPSRVResults = new List <SIPDNSServiceResult>() { sipSRVResult }; } else { SIPSRVResults.Add(sipSRVResult); } }
public void AddNAPTRResult(SIPDNSServiceResult sipNAPTRResult) { if (SIPNAPTRResults == null) { SIPNAPTRResults = new Dictionary <SIPServicesEnum, SIPDNSServiceResult>() { { sipNAPTRResult.SIPService, sipNAPTRResult } }; } else { SIPNAPTRResults.Add(sipNAPTRResult.SIPService, sipNAPTRResult); } }