8 references to Stream
Microsoft.AspNetCore.Antiforgery (8)
Internal\AntiforgerySerializationContext.cs (5)
53
_reader = new BinaryReader(
Stream
, Encoding.UTF8, leaveOpen: true);
71
_writer = new BinaryWriter(
Stream
, Encoding.UTF8, leaveOpen: true);
107
if (
Stream
.Capacity > MaximumStreamSize)
115
Stream
.Position = 0L;
116
Stream
.SetLength(0L);
Internal\DefaultAntiforgeryTokenSerializer.cs (2)
47
var stream = serializationContext.
Stream
;
155
var stream = serializationContext.
Stream
;
Internal\DefaultClaimUidExtractor.cs (1)
136
bool success = serializationContext.
Stream
.TryGetBuffer(out ArraySegment<byte> buffer);