예제 #1
0
 /// <summary>
 /// Constructor for a STOMP 1.2 frame writer.
 /// </summary>
 /// <param name="stream">The stream to write to.</param>
 /// <param name="initialBufferCapacity">Initial write buffer capacity.</param>
 /// <param name="maxBufferCapacity">Maximum write buffer capacity.</param>
 public Stomp12FrameWriter(Stream stream, int initialBufferCapacity = AsyncStreamWriter.DefaultIniBufferCapacity, int maxBufferCapacity = AsyncStreamWriter.DefaultMaxBufferCapacity)
 {
     _writer      = new AsyncStreamWriter(stream, Encoding.UTF8, initialBufferCapacity, maxBufferCapacity);
     _writerOwner = true;
 }
예제 #2
0
 /// <summary>
 /// Constructor for a STOMP 1.2 frame writer.
 /// </summary>
 /// <param name="stream">The stream to write to.</param>
 /// <param name="initialBufferCapacity">Initial write buffer capacity.</param>
 /// <param name="maxBufferCapacity">Maximum write buffer capacity.</param>
 public Stomp12FrameWriter(Stream stream, int initialBufferCapacity = AsyncStreamWriter.DefaultIniBufferCapacity, int maxBufferCapacity = AsyncStreamWriter.DefaultMaxBufferCapacity)
 {
     _writer = new AsyncStreamWriter(stream, Encoding.UTF8, initialBufferCapacity, maxBufferCapacity);
     _writerOwner = true;
 }
예제 #3
0
 internal Stomp12FrameWriter(AsyncStreamWriter writer)
 {
     _writer      = writer;
     _writerOwner = false;
 }
예제 #4
0
 internal Stomp12FrameWriter(AsyncStreamWriter writer)
 {
     _writer = writer;
     _writerOwner = false;
 }