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