2
0
mirror of synced 2025-01-12 01:24:23 +00:00

32 lines
887 B
C#
Raw Normal View History

using KubernetesWorkflow;
using Logging;
namespace Core
{
internal interface IToolsFactory
{
PluginTools CreateTools();
}
internal class ToolsFactory : IToolsFactory
{
private readonly ILog log;
2023-09-13 11:59:21 +02:00
private readonly WorkflowCreator workflowCreator;
private readonly string fileManagerRootFolder;
private readonly ITimeSet timeSet;
public ToolsFactory(ILog log, Configuration configuration, string fileManagerRootFolder, ITimeSet timeSet)
{
this.log = log;
2023-09-13 11:59:21 +02:00
workflowCreator = new WorkflowCreator(log, configuration);
this.fileManagerRootFolder = fileManagerRootFolder;
this.timeSet = timeSet;
}
public PluginTools CreateTools()
{
2023-09-13 11:59:21 +02:00
return new PluginTools(log, workflowCreator, fileManagerRootFolder, timeSet);
}
}
}