/// <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; }
internal Stomp12FrameWriter(AsyncStreamWriter writer) { _writer = writer; _writerOwner = false; }