示例#1
0
        internal async void UpdateGames(GameDataUpdateMessage msg)
        {
            var now = DateTime.Now;
            var ts  = now - msg.CreatedDateTime;

            Console.WriteLine($"Get Msg on {now.ToString("hh:mm:ss fff")}, diff(ms) ={ts.Milliseconds}");
            await _hub.Clients.All.SendAsync("updateGames", msg.GameData);
        }
 public void Handle(GameDataUpdateMessage message)
 {
 }
 public async Task <IEnumerable <MarketlineVO> > Reply(GameDataUpdateMessage message)
 {
     return(await _actor.Ask <IEnumerable <MarketlineVO> >(message));
 }