internal StoreParticipantEntryId(ParticipantEntryId.Reader reader) { uint num = reader.ReadUInt32(); if (num != 3U) { throw new NotSupportedException(ServerStrings.ExUnsupportedABProvider("OLABP", num.ToString())); } uint num2 = reader.ReadUInt32(); this.isMapiPDL = (num2 == 5U); this.emailAddressIndex = StoreParticipantEntryId.IndexToEmailAddressIndex(reader.ReadUInt32()); if (reader.ReadUInt32() != 70U) { throw new NotSupportedException(ServerStrings.ExInvalidParticipantEntryId); } this.ltEntryId = reader.ReadLTEntryId(); if (reader.BytesRemaining != 3) { reader.EnsureEnd(); } }
internal OneOffParticipantEntryId(ParticipantEntryId.Reader reader) { this.flags = (OneOffFlag)reader.ReadUInt32(); Encoding encoding = ((this.flags & (OneOffFlag)2147483648U) == (OneOffFlag)2147483648U) ? Encoding.Unicode : CTSGlobals.AsciiEncoding; this.emailDisplayName = Util.NullIf <string>(reader.ReadZString(encoding), string.Empty); this.emailAddressType = Util.NullIf <string>(reader.ReadZString(encoding), string.Empty); this.emailAddress = Util.NullIf <string>(reader.ReadZString(encoding), string.Empty); reader.EnsureEnd(); if (this.emailAddress == "Unknown") { this.emailAddress = null; } }
internal ADParticipantEntryId(ParticipantEntryId.WabEntryFlag?flags, ParticipantEntryId.Reader reader) { uint num = reader.ReadUInt32(); if (num != 1U) { throw new NotSupportedException(ServerStrings.ExUnsupportedABProvider("Exchange WAB", num.ToString())); } this.legacyRecipientDisplayType = new LegacyRecipientDisplayType?((LegacyRecipientDisplayType)reader.ReadUInt32()); if (flags == null && this.legacyRecipientDisplayType == LegacyRecipientDisplayType.MailUser) { this.legacyRecipientDisplayType = null; } this.legacyDN = reader.ReadZString(CTSGlobals.AsciiEncoding); this.flags = ADParticipantEntryId.ReplaceObjectTypeInformation(flags ?? ParticipantEntryId.WabEntryFlag.Envelope, ref this.legacyRecipientDisplayType, this.legacyDN); this.useWabFormat = (flags != null); reader.EnsureEnd(); }