Exemple #1
0
 public async Task SendColorMessage(ColorChatColor color)
 {
     await Clients.All.SendAsync("ReceiveColorMessage", color);
 }
Exemple #2
0
 private void ChatService_ColorMessageReceived(ColorChatColor color)
 {
     Messages.Add(new ColorChatColorViewModel(color));
 }
Exemple #3
0
 public async Task SendColorMessage(ColorChatColor color)
 {
     await _connection.SendAsync("SendColorMessage", color);
 }
 public ColorChatColorViewModel(ColorChatColor colorChatColor)
 {
     ColorChatColor = colorChatColor;
 }