private bool GetADDCPrpUsageBeginCSRoutine()
 {
     this._isRevealedAcctSpecified      = this._cmdletParameters.GetSwitchParameterBooleanValue("RevealedAccounts");
     this._isAuthenticatedAcctSpecified = this._cmdletParameters.GetSwitchParameterBooleanValue("AuthenticatedAccounts");
     if (base.ParameterSetName == "RevealedAccounts" && !this._cmdletParameters.Contains("RevealedAccounts"))
     {
         this._isRevealedAcctSpecified = true;
     }
     if (this._isRevealedAcctSpecified)
     {
         ADSessionOptions aDSessionOption = new ADSessionOptions();
         aDSessionOption.LocatorFlag = new ADLocatorFlags?(ADLocatorFlags.DirectoryServices6Required);
         base.SetCmdletSessionOptions(aDSessionOption);
     }
     if (!this._isAuthenticatedAcctSpecified)
     {
         if (this._isRevealedAcctSpecified)
         {
             this._sourceProperty     = "msDS-RevealedList";
             this._sourcePropertyType = SourcePropertyType.IdentityInfo;
         }
     }
     else
     {
         this._sourceProperty            = "msDS-AuthenticatedToAccountlist";
         this._autoRangeRetrievalEnabled = false;
         this._sourcePropertyType        = SourcePropertyType.LinkedDN;
     }
     return(true);
 }
 public GetADDCPasswordReplicationPolicyUsage()
 {
     this._autoRangeRetrievalEnabled = true;
     this._printedDNsSet             = new HashSet <string>();
     this._sourcePropertyType        = SourcePropertyType.IdentityInfo;
     base.BeginProcessPipeline.InsertAtStart(new CmdletSubroutine(this.GetADDCPrpUsageBeginCSRoutine));
     base.BeginProcessPipeline.InsertAtStart(new CmdletSubroutine(base.GetADCmdletBaseExternalDelegates().AddSessionOptionWritableDCRequiredCSRoutine));
     base.ProcessRecordPipeline.InsertAtStart(new CmdletSubroutine(this.GetADDCPrpUsageProcessCSRoutine));
 }