예제 #1
0
        /// <summary>
        /// Used to Configure the Steps of the Job. At least one step is required. Only Cmd, Sql and Integration Services steps are currently supported.
        /// </summary>
        /// <param name="configuration">Create a new StepConfiguration</param>
        /// <returns>JobConfiguration</returns>
        public JobConfiguration WithStep(StepConfiguration configuration)
        {
            if (Configuration.Steps == null)
            {
                Configuration.Steps = new List <StepConfiguration>();
            }

            Configuration.Steps.Add(configuration);

            return(Configuration);
        }
예제 #2
0
 /// <summary>
 /// Create a StepConfiguration. This is used to create a step for the Job.
 /// </summary>
 /// <returns></returns>
 public static StepConfiguration Create()
 {
     Configuration = new StepConfiguration();
     SetDefaults();
     return(Configuration);
 }