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

HandleWriteBufferComplete() private method

private HandleWriteBufferComplete ( TransportAsyncCallbackArgs args ) : bool
args Microsoft.Azure.Amqp.Transport.TransportAsyncCallbackArgs
return bool
            bool HandleWriteBufferComplete(TransportAsyncCallbackArgs args)
            {
                bool shouldContinue;
                if (args.Exception != null)
                {
                    shouldContinue = false;
                    this.parent.OnIoFault(args.Exception);
                }
                else
                {
                    Fx.Assert(args.BytesTransfered == args.Count, "Bytes transferred not equal to the bytes set.");
                    shouldContinue = true;
                }

                args.Reset();
                return shouldContinue;
            }
        }