Example #1
0
        /// <summary>
        /// Creates a new task.
        /// </summary>
        /// <param name="builder">The builder to manage.</param>
        /// <param name="priority">The task priority.</param>
        /// <returns>A task, or null on error.</returns>
        public static NMGenTask Create(IncrementalBuilder builder, int priority)
        {
            if (builder == null || builder.IsFinished)
            {
                return(null);
            }

            return(new NMGenTask(builder, priority));
        }
Example #2
0
 private NMGenTask(IncrementalBuilder builder, int priority)
     : base(priority)
 {
     mBuilder = builder;
 }