cs-codex-dist-tests/Framework/KubernetesWorkflow/WorkflowNumberSource.cs

23 lines
546 B
C#
Raw Permalink Normal View History

using Utils;
namespace KubernetesWorkflow
{
public class WorkflowNumberSource
{
2023-04-13 09:07:36 +00:00
private readonly NumberSource containerNumberSource;
public WorkflowNumberSource(int workflowNumber, NumberSource containerNumberSource)
{
WorkflowNumber = workflowNumber;
2023-04-13 09:07:36 +00:00
this.containerNumberSource = containerNumberSource;
}
public int WorkflowNumber { get; }
public int GetContainerNumber()
{
return containerNumberSource.GetNextNumber();
}
}
}