7 references to SetBody
Microsoft.AspNetCore.OutputCaching (4)
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
OutputCacheMiddleware.cs (1)
432
context.CachedResponse.
SetBody
(cachedResponseBody, recycleBuffers: true);
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
EndToEndBenchmarks.cs (3)
129
entry.
SetBody
(body, recycleBuffers: true);
145
entry.
SetBody
(body, recycleBuffers: true);
162
entry.
SetBody
(body, recycleBuffers: true);