// Token: 0x06000628 RID: 1576 RVA: 0x00021480 File Offset: 0x0001F680 public override IRootOrganizationRecipientSession CreateRootOrgRecipientSession(string domainController, ADObjectId searchRoot, int lcid, bool readOnly, ConsistencyMode consistencyMode, NetworkCredential networkCredential, ADSessionSettings sessionSettings, int callerFileLine, string memberName, string callerFilePath) { ADRootOrganizationRecipientSession adrootOrganizationRecipientSession = new ADRootOrganizationRecipientSession(domainController, searchRoot, lcid, readOnly, consistencyMode, networkCredential, sessionSettings); adrootOrganizationRecipientSession.SetCallerInfo(callerFilePath, memberName, callerFileLine); return(adrootOrganizationRecipientSession); }
public override IRecipientSession GetReducedRecipientSession(IRecipientSession baseSession, int callerFileLine, string memberName, string callerFilePath) { IRecipientSession recipientSession; if (baseSession is ADRootOrganizationRecipientSession) { ADRootOrganizationRecipientSession adrootOrganizationRecipientSession = new ADRootOrganizationRecipientSession(baseSession.DomainController, null, CultureInfo.CurrentCulture.LCID, true, baseSession.ConsistencyMode, baseSession.NetworkCredential, baseSession.SessionSettings); adrootOrganizationRecipientSession.EnableReducedRecipientSession(); recipientSession = adrootOrganizationRecipientSession; } else { FfoTenantRecipientSession ffoTenantRecipientSession = new FfoTenantRecipientSession(baseSession.UseConfigNC, true, baseSession.ConsistencyMode, baseSession.NetworkCredential, baseSession.SessionSettings); ffoTenantRecipientSession.EnableReducedRecipientSession(); recipientSession = ffoTenantRecipientSession; } recipientSession.UseGlobalCatalog = baseSession.UseGlobalCatalog; return(recipientSession); }
// Token: 0x06000629 RID: 1577 RVA: 0x000214AC File Offset: 0x0001F6AC public override IRecipientSession GetReducedRecipientSession(IRecipientSession baseSession, int callerFileLine, string memberName, string callerFilePath) { if (!(baseSession is ADRecipientObjectSession) && !(baseSession is CompositeTenantRecipientSession) && !(baseSession is CompositeRecipientSession)) { throw new ArgumentException("baseSession"); } ADRecipientObjectSession adrecipientObjectSession; if (baseSession is ADRootOrganizationRecipientSession) { adrecipientObjectSession = new ADRootOrganizationRecipientSession(baseSession.DomainController, null, CultureInfo.CurrentCulture.LCID, true, baseSession.ConsistencyMode, baseSession.NetworkCredential, baseSession.SessionSettings); } else { adrecipientObjectSession = new ADTenantRecipientSession(baseSession.DomainController, null, CultureInfo.CurrentCulture.LCID, true, baseSession.ConsistencyMode, baseSession.NetworkCredential, baseSession.SessionSettings); } adrecipientObjectSession.EnableReducedRecipientSession(); adrecipientObjectSession.UseGlobalCatalog = baseSession.UseGlobalCatalog; adrecipientObjectSession.SetCallerInfo(callerFilePath, memberName, callerFileLine); return(adrecipientObjectSession); }