public override void ExecuteCmdlet()
 {
     if (!SMClient.GetAvailableRegions().Contains(Location, StringComparer.OrdinalIgnoreCase))
     {
         throw new Exception(Resources.SchedulerInvalidLocation);
     }
     else
     {
         WriteObject(SMClient.GetJobHistory(jobCollection: JobCollectionName, job: JobName, region: Location, jobStatus: JobStatus), true);
     }
 }
示例#2
0
 public override void ExecuteCmdlet()
 {
     WriteObject(SMClient.GetJobHistory(jobCollection: JobCollectionName, job: JobName, region: Location, jobStatus: JobStatus), true);
 }