예제 #1
0
        static public PrincipalCollection MakePrincipalCollection()
        {
            BookmarkableResultSet rs = PrincipalContext.Test.QueryCtx.GetGroupMembership(null, false);
            PrincipalCollection   mc = new PrincipalCollection(rs, new Group());

            return(mc);
        }
 internal PrincipalCollectionEnumerator(ResultSet resultSet, PrincipalCollection memberCollection, List <Principal> removedValuesCompleted, List <Principal> removedValuesPending, List <Principal> insertedValuesCompleted, List <Principal> insertedValuesPending)
 {
     this.creationTime            = DateTime.UtcNow;
     this.resultSet               = resultSet;
     this.memberCollection        = memberCollection;
     this.removedValuesCompleted  = removedValuesCompleted;
     this.removedValuesPending    = removedValuesPending;
     this.insertedValuesCompleted = insertedValuesCompleted;
     this.insertedValuesPending   = insertedValuesPending;
 }
예제 #3
0
        //
        // Internal constructors
        //
        internal PrincipalCollectionEnumerator(
            ResultSet resultSet,
            PrincipalCollection memberCollection,
            List <Principal> removedValuesCompleted,
            List <Principal> removedValuesPending,
            List <Principal> insertedValuesCompleted,
            List <Principal> insertedValuesPending
            )
        {
            GlobalDebug.WriteLineIf(GlobalDebug.Info, "PrincipalCollectionEnumerator", "Ctor");

            Debug.Assert(resultSet != null);

            _resultSet               = resultSet;
            _memberCollection        = memberCollection;
            _removedValuesCompleted  = removedValuesCompleted;
            _removedValuesPending    = removedValuesPending;
            _insertedValuesCompleted = insertedValuesCompleted;
            _insertedValuesPending   = insertedValuesPending;
        }
예제 #4
0
 static public void MCResetTracking(PrincipalCollection trackList)
 {
     trackList.ResetTracking();
 }
예제 #5
0
 static public bool MCChanged(PrincipalCollection trackList)
 {
     return(trackList.Changed);
 }
예제 #6
0
 static public List <Principal> MCRemoved(PrincipalCollection trackList)
 {
     return(trackList.Removed);
 }
예제 #7
0
 static public List <Principal> MCInserted(PrincipalCollection trackList)
 {
     return(trackList.Inserted);
 }