public IQueryable<CharacterClassViewModel> GetClasses()
        {
	        var metricInfo = new HiPerfMetric("CharacterClassService.GetClasses");
	        var classes = GetClasses(metricInfo);
			_logger.Debug(metricInfo.ReportAsDefault());
	        return classes;
        }
Exemplo n.º 2
0
        public async Task<IHttpActionResult> Get()
        {
	        var timer = new HiPerfMetric("Get all classes");
			timer.Start("Getting classes");
            var classes = await Task.Run(() => _characterClassService.GetClasses(timer.StartChildMetric("Service")));
			timer.Stop();
			_logger.Debug(timer.ReportAsDefault());
            return Ok(classes);
        }