示例#1
0
 protected override IEnumerable <AsyncResult <ActiveDirectoryConnectivityOutcome> > BuildTransactions()
 {
     if (base.Context.UseADDriver)
     {
         yield return(ActiveDirectoryConnectivityBase.SingleCommandTransactionSync(new ActiveDirectoryConnectivityBase.ActiveDirectoryConnectivityTask(this.SearchUsingADDriver)));
     }
     else
     {
         yield return(ActiveDirectoryConnectivityBase.SingleCommandTransactionSync(new ActiveDirectoryConnectivityBase.ActiveDirectoryConnectivityTask(this.Search)));
     }
     yield break;
 }
示例#2
0
        protected override IEnumerable <AsyncResult <ActiveDirectoryConnectivityOutcome> > BuildTransactions()
        {
            yield return(ActiveDirectoryConnectivityBase.SingleCommandTransactionSync(new ActiveDirectoryConnectivityBase.ActiveDirectoryConnectivityTask(this.MachinePing)));

            yield break;
        }