3 references to SetBody
Microsoft.AspNetCore.OutputCaching (3)
OutputCacheEntryFormatter.cs (3)
319
result.
SetBody
(new ReadOnlySequence<byte>(ReadSegment(ref reader)), recycleBuffers: false); // we're reusing the live payload buffers
329
result.
SetBody
(new ReadOnlySequence<byte>(first, 0, last, last.Length), recycleBuffers: false); // we're reusing the live payload buffers
369
result.
SetBody
(new(reader.ReadBytesMemory(payloadLength)), recycleBuffers: false); // we're reusing the live payload buffers