in libraries/Extensions.cs [38:56]
public static async Task<String> ReadBodyAsStringAsync(this ReceiveResponse response)
{
// The first stream attached to a ReceiveRequest is always the ReceiveRequest body.
// Any additional streams must be defined within the body or they will not be
// attached properly when processing activities.
try
{
var contentStream = response.Streams.FirstOrDefault();
if (contentStream != null)
{
return await ReadBuffer(contentStream).ConfigureAwait(false);
}
return null;
}
catch (Exception)
{
throw;
}
}