using System.ComponentModel; namespace TinyChat; /// /// Provides data and cancellation support for the event before a message gets sent. /// /// /// Initializes a new instance of the class. /// /// The sender of the message. /// The message content being sent. public class MessageSendingEventArgs(ISender sender, IChatMessageContent content) : CancelEventArgs { /// /// Gets the message content being sent. /// public IChatMessageContent Content { get; } = content; /// /// Gets the sender of the message. /// public ISender Sender { get; } = sender; }