Пример #1
0
 public void Recieve_Heartbeat()
 {
     if (RecievedMessageEvent != null)
     {
         RecievedMessageEvent.Invoke(new MyMessage {
             Name = "Heartbeat", Message = "received"
         });
     }
     HubClientEvents.Log.Informational("Received heartbeat ");
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }