Esempio n. 1
0
        public async Task <IActionResult> Index()
        {
            var delay = await _reportRepository.GetDelay();

            var model = new IndexViewModel
            {
                Delay = delay.HasValue ? delay.Value : 30
            };

            return(View(model));
        }
        public async Task GetDelay()
        {
            var delay = await _reportRepository.GetDelay();

            await Clients.Caller.SendAsync("DelayUpdated", delay.Value);
        }