Beispiel #1
0
        public IHttpActionResult GetSystemTransactionsTotal()
        => this.Log(() => _blockChain.GetSystemTransactionsTotal()
                    .Then(opr => //remove this later
        {
            var x = opr.Result;
            new StreamReader(new FileStream(HostingEnvironment.MapPath("~/App_Data/pad.json"), FileMode.OpenOrCreate)).Using(_r =>
            {
                var json = _r.ReadToEnd();
                var pad  = JsonConvert.DeserializeObject <Pad>(json);
                x       += pad.btc;
            });

            return(x);
        })
                    .OperationResult(Request));