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