Esempio n. 1
0
        public bool ReadStatusReportingEnabled(DirectoryContext directoryContext)
        {
            OrganizationConfigCache.Item item = this.organizationConfigCache.Get(directoryContext.OrganizationId);
            bool readTrackingEnabled          = item.ReadTrackingEnabled;

            TraceWrapper.SearchLibraryTracer.TraceDebug <bool>(this.GetHashCode(), "Read Tracking Enabled = {0}", readTrackingEnabled);
            return(readTrackingEnabled);
        }
Esempio n. 2
0
 public string GetDefaultDomain(OrganizationId organizationId)
 {
     OrganizationConfigCache.Item item = this.organizationConfigCache.Get(organizationId);
     if (item == null || string.IsNullOrEmpty(item.DefaultDomain))
     {
         TraceWrapper.SearchLibraryTracer.TraceError(this.GetHashCode(), "Cannot get domain from org-id cache", new object[0]);
         TrackingFatalException.RaiseED(ErrorCode.InvalidADData, "No default domain found for Organization {0}", new object[]
         {
             organizationId
         });
     }
     return(item.DefaultDomain);
 }
Esempio n. 3
0
 public bool IsDomainInternalRelayForOrganization(OrganizationId organizationId, string domain)
 {
     OrganizationConfigCache.Item item = this.organizationConfigCache.Get(organizationId);
     return(item != null && item.InternalRelayDomains != null && item.InternalRelayDomains.Count != 0 && item.InternalRelayDomains.Contains(domain));
 }
Esempio n. 4
0
 public bool IsDomainAuthoritativeForOrganization(OrganizationId organizationId, string domain)
 {
     OrganizationConfigCache.Item item = this.organizationConfigCache.Get(organizationId);
     return(item != null && item.AuthoritativeDomains != null && item.AuthoritativeDomains.Count != 0 && item.AuthoritativeDomains.Contains(domain));
 }