示例#1
0
		public ScheduledJob StartJob()
		{
			this.IsDisposed();
			ScheduledJob scheduledJob = new ScheduledJob(this._invocationInfo.Command, this._invocationInfo.Name, this);
			scheduledJob.StartJob();
			return scheduledJob;
		}
        /// <summary>
        /// Starts the scheduled job immediately.  A ScheduledJob object is 
        /// returned that represents the running command, and this returned
        /// job is also added to the local job repository.  Job results are
        /// not written to the job store.
        /// </summary>
        /// <returns>ScheduledJob object for running job</returns>
        public ScheduledJob StartJob()
        {
            IsDisposed();

            ScheduledJob job = new ScheduledJob(_invocationInfo.Command, _invocationInfo.Name, this);
            job.StartJob();

            return job;
        }