예제 #1
0
        public async Task <Order> FetchOrder(string orderId)
        {
            try
            {
                var order = await _orderManager.GetOrder(orderId);

                return(order);
            }
            catch (Exception ex)
            {
                _prometheusProvider.CounterIncrement(MetricCounter.ExceptionCounter);
                _logProvider.PublishError("FetchOrder(string orderId)", "Fetch Order Fail " + orderId, ex);
                return(new Order());
            }
        }
 public void CounterIncrease([FromBody] string metricType)
 {
     _metricsProvider.CounterIncrement(metricType);
 }