Exemplo n.º 1
0
        public IAddressCollection GetAddressCollectionInformation(string[] emails)
        {
            AddressCollection ac = new AddressCollection(m_engine);
            ac.AddRange(emails);
            StringBuilder sb = new StringBuilder();
            sb.AppendFormat("Found ({0}) addresses for emails string array", ac.Count);
			Logger.LogInfo(sb.ToString());
            return (IAddressCollection)ac;
        }
Exemplo n.º 2
0
        public IAddressCollection GetAddressCollectionInformation(string value, FieldType field)
        {
            AddressCollection ac = new AddressCollection(m_engine);

            if (IsLdapAvailable)
            {
                ac.AddRange(m_engine.RetrieveMembersByField(field, value, ""));
                StringBuilder sb = new StringBuilder();
                sb.AppendFormat("Found ({0}) addresses for field names", ac.Count);
				Logger.LogInfo(sb.ToString());
            }
            return (IAddressCollection)ac;
        }