コード例 #1
0
        public JobListingFilter()
        {
            var fields = new JobFields();

            this.Submitter           = new OData.Models.FieldFilterString(fields.Submitter);
            this.Name                = new OData.Models.FieldFilterString(fields.Name);
            this.SubmitTime          = new OData.Models.FieldFilterDateTime(fields.SubmitTime);
            this.StartTime           = new OData.Models.FieldFilterDateTime(fields.StartTime);
            this.EndTime             = new OData.Models.FieldFilterDateTime(fields.EndTime);
            this.DegreeOfParallelism = new OData.Models.FieldFilterInteger(fields.DegreeOfParallelism);
            this.Priority            = new OData.Models.FieldFilterInteger(fields.Priority);
            this.State               = new OData.Models.FieldFilterEnum <MSADLA.Models.JobState>(fields.State);
            this.Result              = new OData.Models.FieldFilterEnum <MSADLA.Models.JobResult>(fields.Result);
        }
コード例 #2
0
        private static void Demo_Jobs_List_Oldest(AdlClient.AnalyticsClient adla)
        {
            var listing_parameters = new AdlClient.Models.JobListingParameters();

            listing_parameters.Top = 10;

            var jobfields = new AdlClient.Models.JobFields();

            listing_parameters.Sorting.Direction = AdlClient.OData.Models.OrderByDirection.Ascending;
            listing_parameters.Sorting.Field     = jobfields.SubmitTime;

            var jobs = adla.Jobs.ListJobs(listing_parameters).ToList();

            PrintJobs(jobs);
        }