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); }
protected virtual ABRawEntry InternalFindByLegacyExchangeDN(string legacyExchangeDN, ABPropertyDefinitionCollection properties) { ABObject abobject = this.InternalFindByLegacyExchangeDN(legacyExchangeDN); if (abobject != null) { abobject.PropertyDefinitionCollection = properties; } return(abobject); }
protected virtual ABRawEntry InternalFindById(ABObjectId id, ABPropertyDefinitionCollection properties) { ABObject abobject = this.InternalFindById(id); if (abobject != null) { abobject.PropertyDefinitionCollection = properties; } return(abobject); }
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); }
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); }
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); }