void OnWriteHeaderComplete(TransportAsyncCallbackArgs args)
{
if (args.Exception != null)
{
this.Complete(args);
return;
}
AmqpTrace.Provider.AmqpLogOperationInformational(this, TraceOperation.Execute, "ReadHeader");
byte[] headerBuffer = new byte[AmqpConstants.ProtocolHeaderSize];
args.SetBuffer(headerBuffer, 0, headerBuffer.Length);
args.CompletedCallback = this.OnReadHeaderComplete;
this.reader.ReadBuffer(args);
}