コード例 #1
0
 void SetupGlobal(QldbRequestModel Request)
 {
     Connection        = new ConnectionService();
     Global.LedgerName = Request.LedgerName;
     Global.AccessKey  = Request.AccessKey;
     Global.SecretKey  = Request.SecretKey;
 }
コード例 #2
0
        public IActionResult Write([FromBody] QldbRequestModel QldbRequest)
        {
            if (QldbRequest.ApiKey != ApiKey)
            {
                return(Unauthorized());
            }

            SetupGlobal(QldbRequest);
            var Result = Connection.WriteData(QldbRequest.TableName, QldbRequest.Statement);

            return(new JsonResult(Result));
        }