Beispiel #1
0
        /// <summary>
        /// Create a JobBuilder with which to define a <code>JobDetail</code>,
        /// and set the class name of the <code>Job</code> to be executed.
        /// </summary>
        /// <returns>a new JobBuilder</returns>
        public static JobBuilder NewJob <T>() where T : IJob
        {
            JobBuilder b = new JobBuilder();

            b.OfType(typeof(T));
            return(b);
        }
Beispiel #2
0
        /// <summary>
        /// Create a JobBuilder with which to define a <code>JobDetail</code>,
        /// and set the class name of the <code>Job</code> to be executed.
        /// </summary>
        /// <returns>a new JobBuilder</returns>
        public static JobBuilder NewJob(Type jobType)
        {
            JobBuilder b = new JobBuilder();

            b.OfType(jobType);
            return(b);
        }
Beispiel #3
0
        /// <summary>
        /// Create a JobBuilder with which to define a <see cref="IJobDetail" />,
        /// and set the class name of the job to be executed.
        /// </summary>
        /// <returns>a new JobBuilder</returns>
        public static JobBuilder CreateForAsync <T>() where T : IJob
        {
            JobBuilder b = new JobBuilder();

            b.OfType(typeof(T));
            return(b);
        }