Exemplo n.º 1
0
        public async Task <SpeedTestResults> RunUserSpeedTestAsync()
        {
            var results   = new SpeedTestResults();
            var stopWatch = new Stopwatch();

            stopWatch.Start();
            var user = await _usersDbService.GetSystemUserAsync(1);

            stopWatch.Stop();
            results.GetUserTime = (int)stopWatch.ElapsedMilliseconds;
            stopWatch.Reset();

            return(results);
        }
Exemplo n.º 2
0
 public async Task <SystemUser> GetSystemUser(int id)
 {
     return(await _usersDbService.GetSystemUserAsync(id));
 }