Beispiel #1
0
 protected override void InternalValidate()
 {
     TaskLogger.LogEnter();
     try
     {
         base.InternalValidate();
         if (this.casToTest == null && this.clientAccessServer == null)
         {
             CasHealthMustSpecifyCasException exception = new CasHealthMustSpecifyCasException();
             base.WriteMonitoringEvent(2020, this.CmdletMonitoringEventSource, EventTypeEnumeration.Error, base.ShortErrorMsgFromException(exception));
         }
     }
     catch (ADTransientException exception2)
     {
         base.CasConnectivityWriteError(exception2, ErrorCategory.ObjectNotFound, null);
     }
     finally
     {
         if (base.HasErrors && base.MonitoringContext)
         {
             base.WriteObject(this.monitoringData);
         }
         TaskLogger.LogExit();
     }
 }
Beispiel #2
0
        protected override List <TestCasConnectivity.TestCasConnectivityRunInstance> PopulateInfoPerCas(TestCasConnectivity.TestCasConnectivityRunInstance instance, List <CasTransactionOutcome> outcomeList)
        {
            List <TestCasConnectivity.TestCasConnectivityRunInstance> list = new List <TestCasConnectivity.TestCasConnectivityRunInstance>();

            if (string.IsNullOrEmpty(instance.CasFqdn) || this.casToTest == null)
            {
                CasHealthMustSpecifyCasException exception = new CasHealthMustSpecifyCasException();
                base.CasConnectivityWriteError(exception, ErrorCategory.ObjectNotFound, null);
            }
            else
            {
                list.Add(instance);
            }
            return(list);
        }