ReadSoapHeader method

  1. @override
Future<void> ReadSoapHeader(
  1. EwsXmlReader reader
)
override
Read the partner token soap header. EwsXmlReader

Implementation

@override
Future<void> ReadSoapHeader(EwsXmlReader reader) async {
  await super.ReadSoapHeader(reader);

  if (this.expectPartnerToken) {
    if (reader.IsStartElementWithNamespace(
        XmlNamespace.Autodiscover, XmlElementNames.PartnerToken)) {
      this.PartnerToken = reader.ReadInnerXml();
    }

    if (reader.IsStartElementWithNamespace(
        XmlNamespace.Autodiscover, XmlElementNames.PartnerTokenReference)) {
      this.PartnerTokenReference = reader.ReadInnerXml();
    }
  }
}