Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 3
0
 internal Stomp12FrameWriter(AsyncStreamWriter writer)
 {
     _writer      = writer;
     _writerOwner = false;
 }
Esempio n. 4
0
 internal Stomp12FrameWriter(AsyncStreamWriter writer)
 {
     _writer = writer;
     _writerOwner = false;
 }