Microsoft.Azure.Amqp.AsyncIO.AsyncWriter.WriteBuffer C# (CSharp) Method

WriteBuffer() public method

public WriteBuffer ( ByteBuffer buffer ) : void
buffer ByteBuffer
return void
            public void WriteBuffer(ByteBuffer buffer)
            {
                lock (this.SyncRoot)
                {
                    if (this.writing)
                    {
                        this.EnqueueBuffer(buffer);
                        return;
                    }

                    this.writing = true;
                }

                this.writeAsyncEventArgs.SetBuffer(buffer);
                if (this.WriteCore())
                {
                    this.ContinueWrite();
                }
            }

Same methods

AsyncIO.AsyncWriter::WriteBuffer ( IList buffers ) : void