Exemplo n.º 1
0
        public JobInfo BuildJob(SubmitJobOptions options)
        {
            FixupOptions(options);
            var job_info = this.clients._JobRest.JobBuild(this.account, options);

            return(job_info);
        }
Exemplo n.º 2
0
        private static void FixupOptions(SubmitJobOptions options)
        {
            // If caller doesn't provide a guid, then create a new one
            if (options.JobId == default(System.Guid))
            {
                options.JobId = System.Guid.NewGuid();
            }

            // if caller doesn't provide a name, then create one automativally
            if (options.JobName == null)
            {
                // TODO: Handle the date part of the name nicely
                options.JobName = "USQL " + System.DateTimeOffset.Now.ToString();
            }
        }