Microsoft.Azure.Amqp.AsyncIO.FrameBufferReader.ReadCore C# (CSharp) Method

ReadCore() private method

private ReadCore ( TransportAsyncCallbackArgs args ) : void
args Microsoft.Azure.Amqp.Transport.TransportAsyncCallbackArgs
return void
            void ReadCore(TransportAsyncCallbackArgs args)
            {
                try
                {
                    while (!this.transport.ReadAsync(args))
                    {
                        if (this.HandleReadComplete(args))
                        {
                            break;
                        }
                    }
                }
                catch (Exception exception)
                {
                    if (Fx.IsFatal(exception))
                    {
                        throw;
                    }

                    args.Exception = exception;
                    this.HandleReadComplete(args);
                }
            }