private void OnTextMessageReceived(TextMessageEventArgs args) { var handler = ReceivedTextMessage; if (handler != null) { handler(this, args); } }
private void OnTextMessageReceived (TextMessageEventArgs args) { var handler = ReceivedTextMessage; if (handler != null) handler (this, args); }
private void OnReceivedTextMessage(object sender, TextMessageEventArgs e) { var groupMessages = GetMessageCollection (e.Group); lock (groupMessages) { groupMessages.Add (new TextMessage (e.Group, e.Person, e.Message)); } }