예제 #1
0
        public async Task <Student> GetStudent(string courseName, string studentId)
        {
            using (_logger.BeginScope("{CourseName}, {StudentId}", courseName, studentId))
            {
                var     stopWatch = Stopwatch.StartNew();
                Student student   = await _studentStore.GetStudent(courseName, studentId);

                _telemetryClient.TrackMetric("StudentStore.GetStudent.Time", stopWatch.ElapsedMilliseconds);
                return(student);
            }
        }