Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DynamicBuilder"/> class.
 /// </summary>
 /// <param name="name">The name of this instance. Used to name the created thread.</param>
 /// <param name="builder">The builder to use.</param>
 /// <param name="buildStepProvider">The build step provider to use.</param>
 public DynamicBuilder(Builder builder, IBuildStepProvider buildStepProvider, string name = null)
 {
     this.builder = builder;
     dynamicBuildStep = new DynamicBuildStep(buildStepProvider, builder.ThreadCount);
     builderThread = new Thread(SafeAction.Wrap(BuilderThread)) { IsBackground = true };
     if (!string.IsNullOrEmpty(name))
     {
         builderThread.Name = name;
     }
 }
Esempio n. 2
0
 /// <inheritdoc/>
 public override BuildStep Clone()
 {
     var clone = new DynamicBuildStep(buildStepProvider, MaxParallelSteps);
     return clone;
 }