Esempio n. 1
0
 private IRecipientSession GetRecipientSessionForMonitoringMailbox()
 {
     if (Datacenter.GetExchangeSku() == Datacenter.ExchangeSku.ExchangeDatacenter)
     {
         if (this.monitoringTenantRecipientSession == null)
         {
             ADSessionSettings sessionSettings = ADSessionSettings.FromTenantCUName(MailboxTaskHelper.GetMonitoringTenantName("E15"));
             this.monitoringTenantRecipientSession = DirectorySessionFactory.Default.CreateTenantRecipientSession(true, ConsistencyMode.IgnoreInvalid, sessionSettings, 540, "GetRecipientSessionForMonitoringMailbox", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\ContentIndex\\TestSearch.cs");
         }
         return(this.monitoringTenantRecipientSession);
     }
     return(base.RootOrgGlobalCatalogSession);
 }