public double Ping()
 {
     using (var tMeter = new TimeMeterLog(_nLog, "Ping"))
     {
         tMeter.Info("-1");
         return(-1);
     }
 }
예제 #2
0
 public CResult Ping()
 {
     using (var tMeter = new TimeMeterLog(_nLog, "Ping"))
     {
         tMeter.Info("-1");
         return "-1".ToCResult();
     }
 }
 public string CashInResult(string key)
 {
     using (var tMeter = new TimeMeterLog(_nLog, "CashInResult"))
     {
         var result = JsonConvert.SerializeObject(new { Value = "Some Data" });
         tMeter.Info(result);
         return(result);
     }
 }
예제 #4
0
 //reinoieste datele la client pentru a vedea cit a achitat in timp real
 public CResult GetPayedCashCodeAmount()
 {
     using (var tMeter = new TimeMeterLog(_nLog, "GetPayedCashCodeAmount"))
     {
         var resut = PayedAmount.Sum();
         tMeter.Info(resut.ToString(CultureInfo.InvariantCulture));
         return resut.ToCResult();
     }
 }
예제 #5
0
 //Invoice details
 public CResult GetInvoiceDetails(string authKey, string invoiceDetails)
 {
     using (var tMeter = new TimeMeterLog(_nLog, "GetInvoiceDetails"))
     {
         var result = JsonConvert.SerializeObject(new { OrderId = 100, AmountToPay = 100 });
         tMeter.Info(JsonConvert.SerializeObject(result));
         return result.ToCResult();
     }
 }
예제 #6
0
        //Start proces achitare
        public CResult PayWithCashIn(string amountToPay)
        {
            PayedAmount.Clear();
            using (var tMeter = new TimeMeterLog(_nLog, "PayWithCashIn"))
            {
                var result = JsonConvert.SerializeObject(new { Value = "Some Data" });
                tMeter.Info(amountToPay);
                tMeter.Info(JsonConvert.SerializeObject(result));

                var payedAmount = CashCodeGetPayments(Convert.ToDecimal(amountToPay));

                return payedAmount.ToCResult();
            }

        }