public Task SendMessage(SendMessageObject sendMessage) { var saveMessageQuery = new SaveMessageQuery(); saveMessageQuery.SendMessageObject = sendMessage; _mediator.Send(saveMessageQuery); return(Clients.All.SendAsync("ReceiveMessage", sendMessage)); }
public void SaveToMessages(SendMessageObject sendMessage) { }