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