private void ConvertHeaders(IMessageReader input, IMessageBuilder output) { var headerCount = input.ItemCount; output.BeginHeaders(headerCount); for (; headerCount > 0; headerCount--) { input.Read(); output.WriteHeader(input.PropertyName, input.StringValue); } output.EndHeaders(); }
private void ConvertHeaders(IMessageReader input, IMessageBuilder output) { var headerCount = input.ItemCount; output.BeginHeaders(headerCount); for (; headerCount > 0; headerCount--) { input.Read(); output.WriteHeader(input.PropertyName, input.StringValue); } output.EndHeaders(); }