Microsoft.Azure.Amqp.AsyncIO.AsyncReader.HandleFrameBodyReadComplete C# (CSharp) Method

HandleFrameBodyReadComplete() private method

private HandleFrameBodyReadComplete ( TransportAsyncCallbackArgs args ) : void
args Microsoft.Azure.Amqp.Transport.TransportAsyncCallbackArgs
return void
            void HandleFrameBodyReadComplete(TransportAsyncCallbackArgs args)
            {
                ByteBuffer buffer = (ByteBuffer)args.UserToken2;
                Fx.Assert(buffer != null, "Buffer must not be null when reading body");
                buffer.Append(buffer.Size);
                Fx.Assert(buffer.Size == 0, "Buffer should be filled entirely");
                this.asyncIo.ioHandler.OnReceiveBuffer(buffer);

                this.SetReadFrameSize();
            }
        }