/// <summary> /// Constructor for a STOMP 1.2 frame reader. /// </summary> /// <param name="stream">The stream to read from.</param> /// <param name="bufferCapacity">The read buffer size.</param> public Stomp12FrameReader(IStream stream, int?bufferCapacity = null) { _reader = new AsyncStreamReader(stream, Encoding.UTF8, bufferCapacity); _readerOwner = true; }
internal Stomp12FrameReader(AsyncStreamReader reader) { _reader = reader; _readerOwner = false; }