/// <summary> /// Raise the message sent event. /// </summary> /// <remarks> /// Raises the message sent event. /// </remarks> /// <param name="e">The message sent event args.</param> protected virtual void OnMessageSent(MessageSentEventArgs e) { var handler = MessageSent; if (handler != null) { handler(this, e); } }
/// <summary> /// Raise the message sent event. /// </summary> /// <remarks> /// Raises the message sent event. /// </remarks> /// <param name="e">The message sent event args.</param> protected virtual void OnMessageSent (MessageSentEventArgs e) { var handler = MessageSent; if (handler != null) handler (this, e); }
/// <summary> /// Raise the message sent event. /// </summary> /// <remarks> /// Raises the message sent event. /// </remarks> /// <param name="e">The message sent event args.</param> protected virtual void OnMessageSent(MessageSentEventArgs e) { MessageSent?.Invoke(this, e); }