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