Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 DocuSign connect (REST v2.1) 与我的 .NET Core 5 项目集成。但是,一旦 Webhook 将其请求发送到我配置的 POST URL,我不确定如何获取通知正文。
我能够使用以下代码解决问题。
if (!Request.Body.CanSeek) { Request.EnableBuffering(); } Request.Body.Position = 0; var reader = new StreamReader(Request.Body, Encoding.UTF8); var body = await reader.ReadToEndAsync().ConfigureAwait(false);