に基づいてNET COREのマイクロ光相互接続QRコードスキャナインタフェースの書き方

658 ワード

2日間の記録を検討した.
 		 /// 
        ///      
        /// 
        /// 
        [HttpPost]
        [ApiExplorerSettings(GroupName = "core")]
        public string getqrcord()
        {
            //     
            Stream stream = HttpContext.Request.Body;
            byte[] buffer = new byte[HttpContext.Request.ContentLength.Value];
            stream.Read(buffer, 0, buffer.Length);
            string content = Encoding.UTF8.GetString(buffer);
            Logs.WriteLog("qrcode", content, hostingEnvironment);
            //     
            return "code=0000";
        }