ReadSoapHeaders method

Future<void> ReadSoapHeaders(
  1. EwsXmlReader reader
)
Read SOAP headers. EwsXmlReader

Implementation

Future<void> ReadSoapHeaders(EwsXmlReader reader) async {
  await reader.ReadStartElementWithNamespace(
      XmlNamespace.Soap, XmlElementNames.SOAPHeaderElementName);
  do {
    await reader.Read();

    await this.ReadSoapHeader(reader);
  } while (!reader.IsEndElementWithNamespace(
      XmlNamespace.Soap, XmlElementNames.SOAPHeaderElementName));
}