/// <summary> /// Sends message asynchronously to a remote SMPP server /// </summary> /// <param name="message">A message to send</param> /// <param name="callback">An <see cref="AsyncCallback"/> delegate</param> /// <param name="state">An object that contains state information for this request</param> /// <returns>An <see cref="IAsyncResult"/> that references the asynchronous send message operation</returns> public IAsyncResult BeginSendMessage(ShortMessage message, AsyncCallback callback, object state) { var timeout = _vTrans.DefaultResponseTimeout; return(BeginSendMessage(message, timeout, callback, state)); }
/// <summary> /// Sends message to a remote SMPP server /// </summary> /// <param name="message">A message to send</param> public void SendMessage(ShortMessage message) { SendMessage(message, _vTrans.DefaultResponseTimeout); }
/// <summary> /// Sends message asynchronously to a remote SMPP server /// </summary> /// <param name="message">A message to send</param> /// <param name="timeout">A value in miliseconds after which the send operation times out</param> /// <param name="callback">An <see cref="AsyncCallback"/> delegate</param> /// <param name="state">An object that contains state information for this request</param> /// <returns>An <see cref="IAsyncResult"/> that references the asynchronous send message operation</returns> public IAsyncResult BeginSendMessage(ShortMessage message, int timeout, AsyncCallback callback, object state) { return(_vSendMessageCallBack.BeginInvoke(message, timeout, callback, state)); }
/// <summary> /// Creates a new instance of <see cref="MessageEventArgs"/> /// </summary> /// <param name="message">The message associated with the message event</param> public MessageEventArgs(ShortMessage message) { _vShortMessage = message; }