// Token: 0x06001111 RID: 4369 RVA: 0x000634E0 File Offset: 0x000616E0
        private List <ADUser> GetAllSystemMailboxes(Guid databaseGuid)
        {
            UMTracer.DebugTrace("UMGrammarTenantCache.GetAllSystemMailboxes for database '{0}'", new object[]
            {
                databaseGuid
            });
            List <ADUser> systemMailboxes = new List <ADUser>();
            Exception     ex = Utilities.RunSafeADOperation(ExTraceGlobals.UMGrammarGeneratorTracer, delegate
            {
                systemMailboxes.AddRange(OrganizationMailbox.FindByDatabaseId(OrganizationCapability.UMGrammar, new ADObjectId(databaseGuid)));
            }, "GetAllSystemMailboxes: Getting all system mailboxes in a given database");

            if (ex != null)
            {
                UMTracer.ErrorTrace("GetAllSystemMailboxes: Failed in AD operation for database '{0}'. Error='{1}'", new object[]
                {
                    databaseGuid.ToString(),
                    ex
                });
                UmGlobals.ExEvent.LogEvent(UMEventLogConstants.Tuple_GrammarGenerationCouldntFindSystemMailbox, null, new object[]
                {
                    databaseGuid.ToString(),
                    CommonUtil.ToEventLogString(ex)
                });
            }
            return(systemMailboxes);
        }
Esempio n. 2
0
 // Token: 0x0600015F RID: 351 RVA: 0x00005A8C File Offset: 0x00003C8C
 protected virtual IEnumerable <ADUser> GetLocalMailboxUsers()
 {
     foreach (Guid databaseGuid in this.GetLocalActiveDatabases())
     {
         foreach (ADUser user in OrganizationMailbox.FindByDatabaseId(base.Context.ActiveCapability, new ADObjectId(databaseGuid)))
         {
             yield return(user);
         }
     }
     yield break;
 }
Esempio n. 3
0
        // Token: 0x060010AB RID: 4267 RVA: 0x00061DA0 File Offset: 0x0005FFA0
        private List <ADUser> GetAllSystemMailboxes(Guid databaseGuid)
        {
            GroupMetricsTenantCache.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "GroupMetricsTenantCache.GetAllSystemMailboxes for database {0}", databaseGuid);
            List <ADUser> systemMailboxes = new List <ADUser>();
            Exception     ex = Utilities.RunSafeADOperation(GroupMetricsTenantCache.Tracer, delegate
            {
                systemMailboxes.AddRange(OrganizationMailbox.FindByDatabaseId(OrganizationCapability.GMGen, new ADObjectId(databaseGuid)));
            }, "GetAllSystemMailboxes: Getting all system mailboxes in a given database");

            if (ex != null)
            {
                GroupMetricsTenantCache.Tracer.TraceDebug <Guid, Exception>((long)this.GetHashCode(), "GetAllSystemMailboxes: Failed in AD operation for database '{0}'. Error='{1}'", databaseGuid, ex);
                GroupMetricsTenantCache.EventLogger.LogEvent(InfoWorkerEventLogConstants.Tuple_GroupMetricsGenerationCouldntFindSystemMailbox, null, new object[]
                {
                    databaseGuid.ToString(),
                    CommonUtil.ToEventLogString(ex)
                });
            }
            return(systemMailboxes);
        }