public void KickUser(MessageSent message) { // Publish a UserKicked event containing id of the user being kicked publisher.Publish(new UserKicked { UserId = message.Sender.Id }); }
private void AddMessage(MessageSent message) { // Add message to listbox when MessageSent events are published ExecuteOnUIThread(() => Messages.Items.Add(message)); }