/// <summary>
 /// The callback. Pass this wherever a configuration callback is required.
 /// </summary>
 /// <param name="buildEnvironment"></param>
 public void Callback(IPipelineBuilderEnvironment buildEnvironment)
 {
     ++CallCount;
     AllEnvironments.Add(buildEnvironment);
     Action?.Invoke(buildEnvironment);
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RunningEnvironment"/> class.
 /// This is needed for the smart enumerations pattern.
 /// </summary>
 /// <param name="order">Order number of the environment.</param>
 /// <param name="name">Name of the environment.</param>
 private RunningEnvironment(int order, string name)
 {
     Order = order;
     Name  = name;
     AllEnvironments.Add(this);
 }
 public EnvironmentType(string name)
 {
     Name = name;
     AllEnvironments.Add(this);
 }