private RmsClientManagerContext(OrganizationId orgId, RmsClientManagerContext.ContextId contextId, string contextValue, Guid transactionId, IADRecipientCache recipientCache, IRmsLatencyTracker latencyTracker) { ArgumentValidator.ThrowIfNull("orgId", orgId); this.orgId = orgId; this.tenantId = RmsClientManagerUtils.GetTenantGuidFromOrgId(this.orgId); this.contextId = contextId; this.contextValue = contextValue; this.transactionId = transactionId; this.recipientCache = recipientCache; this.latencyTracker = (latencyTracker ?? NoopRmsLatencyTracker.Instance); if (this.recipientCache != null && this.recipientCache.ADSession != null) { this.recipientSession = this.recipientCache.ADSession; return; } this.recipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(ConsistencyMode.IgnoreInvalid, this.orgId.Equals(OrganizationId.ForestWideOrgId) ? ADSessionSettings.FromRootOrgScopeSet() : ADSessionSettings.FromOrganizationIdWithoutRbacScopesServiceOnly(orgId), 248, ".ctor", "f:\\15.00.1497\\sources\\dev\\data\\src\\storage\\rightsmanagement\\RmsClientManagerContext.cs"); }