internal Result<ADRawEntry>[] GetBatchADObjects(ProxyAddress[] proxyAddresses)
		{
			ArgumentValidator.ThrowIfNull("proxyAddresses", proxyAddresses);
			if (proxyAddresses.Length == 0)
			{
				this.tracer.TraceDebug((long)this.GetHashCode(), "ADContactDataProvider.GetBatchADObjects: no proxy addresses to get AD objects");
				return Array<Result<ADRawEntry>>.Empty;
			}
			ADPersonToContactConverterSet organizationalContactProperties = ADPersonToContactConverterSet.OrganizationalContactProperties;
			return this.recipientSession.FindByProxyAddresses(proxyAddresses, organizationalContactProperties.ADProperties);
		}
Example #2
0
        // Token: 0x06001AB7 RID: 6839 RVA: 0x00064E54 File Offset: 0x00063054
        private PersonId IsAdPersonLinkedInMailbox(ADObjectId adObjectId)
        {
            ToServiceObjectForPropertyBagPropertyList propertyListForPersonaResponseShape = Persona.GetPropertyListForPersonaResponseShape(Persona.FullPersonaShape);

            PropertyDefinition[]          propertyDefinitions           = propertyListForPersonaResponseShape.GetPropertyDefinitions();
            ADPersonToContactConverterSet adpersonToContactConverterSet = ADPersonToContactConverterSet.FromPersonProperties(propertyDefinitions, null);
            ADRawEntry adRawEntry = this.adRecipientSession.ReadADRawEntry(adObjectId, adpersonToContactConverterSet.ADProperties);
            Person     person     = Person.FindPersonLinkedToADEntry(base.MailboxIdentityMailboxSession, adRawEntry, propertyDefinitions);

            if (person != null)
            {
                return(person.PersonId);
            }
            return(null);
        }
        private IStorePropertyBag ConvertADObjectToIStorePropertyBag(ADRawEntry objectToConvert)
        {
            ADPersonToContactConverterSet adpersonToContactConverterSet = ADPersonToContactConverterSet.FromContactProperties(this.propertyDefinitions, this.hashSetPropertyDefinitions);

            return(adpersonToContactConverterSet.Convert(objectToConvert));
        }