我目前有这段代码
SessionStream(Request.Content.ReadAsStreamAsync(), new { });
我需要以某种方式“镜像”传入的流,以便我有两个实例。 类似以下伪代码:
Task<Stream> stream = Request.Content.ReadAsStreamAsync();
SessionStream(stream, new { });
Stream theotherStram;
stream.Result.CopyToAsync(theotherStram)
ThoOtherStream(theotherStram, new { });