Beispiel #1
0
        public ServiceResponse <IEnumerable <Value> > GetAllItems()
        {
            var response = new ServiceResponse <IEnumerable <Value> >();

            using (_metrics.MeasureDuration("values.getAll", new string[] { "webapp", "valuesservice" }))
            {
                Logger.LogInfo("Retrieving all values");
                response.Content = _values;
            }

            return(response);
        }