2 instantiations of FrameHeader
System.Net.Security (2)
System\Net\StreamFramer.cs (2)
14
private readonly FrameHeader _writeHeader = new
FrameHeader
();
15
private readonly FrameHeader _curReadHeader = new
FrameHeader
();
18 references to FrameHeader
System.Net.Security (18)
System\Net\Security\NegotiateStream.cs (10)
658
_framer.WriteHeader.MessageId =
FrameHeader
.HandshakeId;
791
_framer!.WriteHeader.MessageId =
FrameHeader
.HandshakeDoneId;
872
if (_framer.ReadHeader.MessageId ==
FrameHeader
.HandshakeErrId)
884
if (_framer.ReadHeader.MessageId ==
FrameHeader
.HandshakeDoneId)
897
else if (_framer.ReadHeader.MessageId !=
FrameHeader
.HandshakeId)
899
throw new AuthenticationException(SR.Format(SR.net_io_header_id, nameof(
FrameHeader
.MessageId), _framer.ReadHeader.MessageId,
FrameHeader
.HandshakeId));
907
throw new AuthenticationException(SR.Format(SR.net_io_header_id, nameof(
FrameHeader
.MessageId), _framer.ReadHeader.MessageId,
FrameHeader
.HandshakeDoneId));
922
_framer!.WriteHeader.MessageId =
FrameHeader
.HandshakeErrId;
System\Net\StreamFramer.cs (8)
14
private readonly
FrameHeader
_writeHeader = new FrameHeader();
15
private readonly
FrameHeader
_curReadHeader = new FrameHeader();
17
private readonly byte[] _readHeaderBuffer = new byte[
FrameHeader
.Size];
18
private readonly byte[] _writeHeaderBuffer = new byte[
FrameHeader
.Size];
21
public
FrameHeader
ReadHeader => _curReadHeader;
22
public
FrameHeader
WriteHeader => _writeHeader;
48
if (_curReadHeader.PayloadSize >
FrameHeader
.MaxMessageSize)
51
FrameHeader
.MaxMessageSize,