Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 public EnvironmentType(string name)
 {
     Name = name;
     AllEnvironments.Add(this);
 }