public void SendMessage(MessageSentEventArgs args) { OnMessageSent(args); }
protected virtual void OnMessageSent(MessageSentEventArgs e) { EventHandler handler = MessageSent; handler?.Invoke(this, e); }