2
0
mirror of synced 2025-01-12 17:44:08 +00:00
cs-codex-dist-tests/KubernetesWorkflow/WorkflowNumberSource.cs

23 lines
546 B
C#

using Utils;
namespace KubernetesWorkflow
{
public class WorkflowNumberSource
{
private readonly NumberSource containerNumberSource;
public WorkflowNumberSource(int workflowNumber, NumberSource containerNumberSource)
{
WorkflowNumber = workflowNumber;
this.containerNumberSource = containerNumberSource;
}
public int WorkflowNumber { get; }
public int GetContainerNumber()
{
return containerNumberSource.GetNextNumber();
}
}
}