コード例 #1
0
        public async void UpdateTime(Player player)
        {
            if (string.IsNullOrEmpty(player.ConnectionId) && !player.IsTelnet)
            {
                return;
            }

            try
            {
                await _hubContext.Clients.Client(player.ConnectionId).SendAsync("UpdateTime", _time.ReturnTime());
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }