2
0
mirror of synced 2025-01-13 18:14:14 +00:00

23 lines
546 B
C#
Raw Permalink Normal View History

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