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