Exemplo n.º 1
0
 private void TraceForObjectAfterFind(ABObject objectFound)
 {
     if (objectFound == null)
     {
         this.Tracer.TraceDebug(0L, "Provider didn't find object.");
         return;
     }
     this.Tracer.TraceDebug <string>(0L, "Provider found object with display name '{0}'.", objectFound.DisplayName);
 }
Exemplo n.º 2
0
        protected virtual ABRawEntry InternalFindByLegacyExchangeDN(string legacyExchangeDN, ABPropertyDefinitionCollection properties)
        {
            ABObject abobject = this.InternalFindByLegacyExchangeDN(legacyExchangeDN);

            if (abobject != null)
            {
                abobject.PropertyDefinitionCollection = properties;
            }
            return(abobject);
        }
Exemplo n.º 3
0
        protected virtual ABRawEntry InternalFindById(ABObjectId id, ABPropertyDefinitionCollection properties)
        {
            ABObject abobject = this.InternalFindById(id);

            if (abobject != null)
            {
                abobject.PropertyDefinitionCollection = properties;
            }
            return(abobject);
        }
Exemplo n.º 4
0
        public ABObject FindById(ABObjectId id)
        {
            if (id == null)
            {
                throw new ArgumentNullException("id");
            }
            this.ThrowIfDisposed();
            this.Tracer.TraceDebug <ABObjectId>(0L, "FindById ({0})", id);
            ABObject abobject = this.InternalFindById(id);

            this.TraceForObjectAfterFind(abobject);
            return(abobject);
        }
Exemplo n.º 5
0
        public ABObject FindByLegacyExchangeDN(string legacyExchangeDN)
        {
            if (string.IsNullOrEmpty(legacyExchangeDN))
            {
                throw new ArgumentNullException("legacyExchangeDN");
            }
            this.ThrowIfDisposed();
            this.Tracer.TraceDebug <string>(0L, "FindByLegacyExchangeDN('{0}')", legacyExchangeDN);
            ABObject abobject = this.InternalFindByLegacyExchangeDN(legacyExchangeDN);

            this.TraceForObjectAfterFind(abobject);
            return(abobject);
        }
Exemplo n.º 6
0
        public ABObject FindByProxyAddress(ProxyAddress proxyAddress)
        {
            if (proxyAddress == null)
            {
                throw new ArgumentNullException("proxyAddress");
            }
            this.ThrowIfDisposed();
            this.Tracer.TraceDebug <ProxyAddress>(0L, "FindByProxyAddress('{0}')", proxyAddress);
            ABObject abobject = this.InternalFindByProxyAddress(proxyAddress);

            this.TraceForObjectAfterFind(abobject);
            return(abobject);
        }