예제 #1
0
 public NpgsqlParameterStatus(Stream stream)
 {
     //Read message length
     stream.EatStreamBytes(4);
     Parameter = stream.ReadString();
     ParameterValue = stream.ReadString();
 }
예제 #2
0
        public NpgsqlBackEndKeyData(Stream stream)
        {
            // Read the BackendKeyData message contents. Two Int32 integers = 8 Bytes.
            // For protocol version 3.0 they are three integers. The first one is just the size of message
            // so, just read it.
            stream.EatStreamBytes(4);

            ProcessID = stream.ReadInt32();
            SecretKey = stream.ReadInt32();
        }