示例#1
0
 public static void PushPositionDataToClient(Position position)
 {
     var connectionMamanger = (IConnectionManager)AspNetHost.DependencyResolver.GetService(typeof(IConnectionManager));
     dynamic clients = connectionMamanger.GetClients<CommunicationHub>();
     clients.renderPosition(position);
 }
示例#2
0
 public void Send(Position position)
 {
     //brodcast the data to the client
      CommunicationHub.PushPositionDataToClient(position);
 }