猿问

Task<string>如何转换成string?

       /// <summary>
        /// 文字类型请求        /// </summary>
        /// <param name="requestMessage"></param>
        /// <returns></retturns>
        public  override  IResponseMessageBase OnTextRequest(RequestMessageText requestMessage)
        {            var responseMessage = base.CreateResponseMessage<ResponseMessageText>();            string BotMessage =await MSBot.PostMessage(requestMessage.Content);
            responseMessage.Content = BotMessage;            return responseMessage;
        }

这个可以有办法转换吗?

https://img4.mukewang.com/5b7a2ebe0001413107090290.jpg

慕的地10843
浏览 5492回答 1
1回答

扬帆大鱼

&nbsp;await&nbsp;Task<string>&nbsp;的结果就是&nbsp;string&nbsp;
随时随地看视频慕课网APP
我要回答