public RmsClientManagerContext(OrganizationId orgId, RmsClientManagerContext.ContextId contextId, string contextValue, IADRecipientCache recipientCache, IRmsLatencyTracker latencyTracker, string publishingLicense = null) : this(orgId, contextId, contextValue, Guid.NewGuid(), recipientCache, latencyTracker) { if (!string.IsNullOrEmpty(publishingLicense)) { this.orgId = RmsClientManagerUtils.OrgIdFromPublishingLicenseOrDefault(publishingLicense, orgId, out this.externalDirectoryOrgId); } }
public RmsClientManagerContext(OrganizationId orgId, RmsClientManagerContext.ContextId contextId, string contextValue, string publishingLicense = null) : this(orgId, contextId, contextValue, Guid.NewGuid(), null, null) { if (!string.IsNullOrEmpty(publishingLicense)) { this.orgId = RmsClientManagerUtils.OrgIdFromPublishingLicenseOrDefault(publishingLicense, orgId, out this.externalDirectoryOrgId); } }
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"); }
public RmsClientManagerContext(OrganizationId orgId, RmsClientManagerContext.ContextId contextId, string contextValue, IADRecipientCache recipientCache, IRmsLatencyTracker latencyTracker, string publishingLicense, Guid externalDirectoryOrgId) : this(orgId, contextId, contextValue, recipientCache, latencyTracker, publishingLicense) { this.externalDirectoryOrgId = externalDirectoryOrgId; }
public RmsClientManagerContext(OrganizationId orgId, RmsClientManagerContext.ContextId contextId, string contextValue, Guid transactionId, Guid externalDirectoryOrgId) : this(orgId, contextId, contextValue, transactionId, null, null) { this.externalDirectoryOrgId = externalDirectoryOrgId; }