/// <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)); }
private NMGenTask(IncrementalBuilder builder, int priority) : base(priority) { mBuilder = builder; }