public IJobBuilder AddJob(string id) { // Are we currently building a job? if (_jobBuilder != null) { // Add the current job to the jobs context BuildCurrentJob(); } // Clear the existing job builder and get ready to make a new job _jobBuilder = new JobBuilderImpl(this); _jobBuilder.SetId(id); return(_jobBuilder); }