Ejemplo n.º 1
0
        public async Task GetLatestCount(string random)
        {
            //var user = Context.User.Identity.Name;
            int count;

            do
            {
                count = _countService.GetLatesCount();

                Thread.Sleep(1000);

                await Clients.All.SendAsync("Update", count);
            } while (count < 10);

            await Clients.All.SendAsync("End");
        }