예제 #1
0
 /// <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;
 }
예제 #2
0
 internal Stomp12FrameReader(AsyncStreamReader reader)
 {
     _reader      = reader;
     _readerOwner = false;
 }