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;
}
}