internal MRSRequestWrapper(IConfigurationSession session, MRSRequestType type, string commonName) { base.RequestType = type; ADObjectId relativeContainerId = ADHandler.GetRelativeContainerId(type); base.SetId(session, relativeContainerId, commonName); }
internal static ADObjectId GetRootId(IConfigurationSession configSession, MRSRequestType type) { if (!configSession.SessionSettings.IsTenantScoped && CommonUtils.IsMultiTenantEnabled()) { return(null); } ADObjectId descendantId = configSession.GetOrgContainerId().GetDescendantId(ADHandler.RelativeMRSContainer); return(descendantId.GetDescendantId(ADHandler.GetRelativeContainerId(type))); }