/// <summary> /// Run the given query with the given query args and wait for the job to /// complete. /// </summary> /// <param name="service">The service</param> /// <param name="query">The search query</param> /// <param name="args">The args</param> /// <returns>The job</returns> private Job RunWait(Service service, string query, Args args) { Job job = service.GetJobs().Create(query, args); return this.Wait(job); }
/// <summary> /// Run the given query with the given query args. /// </summary> /// <param name="service">The service</param> /// <param name="query">The search query</param> /// <param name="args">The args</param> /// <returns>The job</returns> private Job Run(Service service, string query, JobArgs args) { return service.GetJobs().Create(query, args); }