Exemple #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;
 }
        //
        // 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;
        }
Exemple #4
0
 static public void MCResetTracking(PrincipalCollection trackList)
 {
     trackList.ResetTracking();
 }
Exemple #5
0
 static public bool MCChanged(PrincipalCollection trackList)
 {
     return(trackList.Changed);
 }
Exemple #6
0
 static public List <Principal> MCRemoved(PrincipalCollection trackList)
 {
     return(trackList.Removed);
 }
Exemple #7
0
 static public List <Principal> MCInserted(PrincipalCollection trackList)
 {
     return(trackList.Inserted);
 }