public Task<ChatMessage> SendMessage(ChatMessage message) { return _proxy.Invoke<ChatMessage>("SendMessage", message); }
public Task<object> SendMessage(string userName, ChatMessage chatMessage) { return _proxy.Invoke<object>("SendMessage", userName, chatMessage); }
private void OnMessageReceived(UserDetail sender, ChatMessage message) { _context.Post(_ => MessageReceived(sender, message), null); }