/// <summary> /// Send an dynamic update to the dns server and returns the answer asynchronously. /// </summary> /// <param name="message"> Update, that should be send to the dns server </param> /// <param name="requestCallback"> /// An <see cref="System.AsyncCallback" /> delegate that references the method to invoked then the operation is complete. /// </param> /// <param name="state"> /// A user-defined object that contains information about the receive operation. This object is passed to the /// <paramref /// name="requestCallback" /> /// delegate when the operation is complete. /// </param> /// <returns> /// An <see cref="System.IAsyncResult" /> IAsyncResult object that references the asynchronous receive. /// </returns> public IAsyncResult BeginSendUpdate(DnsUpdateMessage message, AsyncCallback requestCallback, object state) { if (message == null) throw new ArgumentNullException("message"); if (String.IsNullOrEmpty(message.ZoneName)) throw new ArgumentException("Zone name must be provided", "message"); return BeginSendMessage(message, requestCallback, state); }
/// <summary> /// Send an dynamic update to the dns server and returns the answer. /// </summary> /// <param name="message"> Update, that should be send to the dns server </param> /// <returns> The complete response of the dns server </returns> public DnsUpdateMessage SendUpdate(DnsUpdateMessage message) { if (message == null) throw new ArgumentNullException("message"); if (String.IsNullOrEmpty(message.ZoneName)) throw new ArgumentException("Zone name must be provided", "message"); return SendMessage(message); }