Example #1
0
        public override void ExecuteCmdlet()
        {
            var options = new WebJobFilterOptions()
            {
                Name = Name, Slot = Slot, JobName = JobName, JobType = JobType
            };
            List <IPSWebJob> jobs = WebsitesClient.FilterWebJobs(options);

            WriteObject(jobs, true);
        }
        public override void ExecuteCmdlet()
        {
            WebJobFilterOptions options = new WebJobFilterOptions()
            {
                Name = Name, Slot = Slot, JobName = JobName, JobType = JobType
            };
            List <PSWebJob> jobs = new List <PSWebJob>();

            try
            {
                jobs = WebsitesClient.FilterWebJobs(options);
            }
            catch
            {
                // Ignore exceptions, just show empty list.
            }

            WriteObject(jobs, true);
        }