public void Recieve_Heartbeat() { if (RecievedMessageEvent != null) { RecievedMessageEvent.Invoke(new MyMessage { Name = "Heartbeat", Message = "received" }); } HubClientEvents.Log.Informational("Received heartbeat "); }
public void Recieve_SendHelloObject(HelloModel hello) { if (RecievedMessageEvent != null) { RecievedMessageEvent.Invoke(new MyMessage { Name = hello.Age.ToString(), Message = hello.Molly }); } HubClientEvents.Log.Informational("Received sendHelloObject " + hello.Molly + ", " + hello.Age); }
public void Recieve_AddMessage(string name, string message) { if (RecievedMessageEvent != null) { RecievedMessageEvent.Invoke(new MyMessage { Name = name, Message = message }); } HubClientEvents.Log.Informational("Received addMessage: " + name + ": " + message); }