Пример #1
0
 internal static IDirectorySession RescopeSessionToTenantSubTree(IDirectorySession session)
 {
     if (session == null)
     {
         throw new ArgumentNullException("session");
     }
     if (session.ConfigScope == ConfigScopes.TenantLocal)
     {
         return(ADSession.CreateScopedSession(session, ADSessionSettings.RescopeToSubtree(session.SessionSettings)));
     }
     return(session);
 }