static private OnReadBufferComplete ( |
||
args | ||
return | void |
static void OnReadBufferComplete(TransportAsyncCallbackArgs args)
{
var thisPtr = (AsyncReader)args.UserToken;
bool shouldContine;
try
{
shouldContine = thisPtr.HandleReadBufferComplete(args);
}
catch (Exception exception)
{
if (Fx.IsFatal(exception))
{
throw;
}
thisPtr.asyncIo.ioHandler.OnIoFault(exception);
thisPtr.Cleanup();
shouldContine = false;
}
if (shouldContine)
{
thisPtr.ReadBuffer();
}
}