Beispiel #1
0
 internal AbstractResponse(ResponseFrame frame)
 {
     BEBinaryReader = new BEBinaryReader(frame);
     if ((frame.FrameHeader.Flags & 0x02) == 0x02)
     {
         var buffer = new byte[16];
         BEBinaryReader.Read(buffer, 0, 16);
         TraceID = new Guid(TypeInterpreter.GuidShuffle(buffer));
     }
 }
        internal AbstractResponse(ResponseFrame frame)
        {
            BEBinaryReader = new BEBinaryReader(frame);
            if (frame.FrameHeader.Version != ResponseFrame.ProtocolResponseVersionByte)
            {
                throw new ProtocolErrorException("Invalid protocol version");
            }

            if ((frame.FrameHeader.Flags & 0x02) == 0x02)
            {
                var buffer = new byte[16];
                BEBinaryReader.Read(buffer, 0, 16);
                TraceID = new Guid(TypeInterpreter.GuidShuffle(buffer));
            }
        }