mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-02-04 21:33:05 +00:00
32 lines
858 B
C#
32 lines
858 B
C#
|
|
using KubernetesWorkflow;
|
|||
|
|
using Logging;
|
|||
|
|
|
|||
|
|
namespace Core
|
|||
|
|
{
|
|||
|
|
internal interface IToolsFactory
|
|||
|
|
{
|
|||
|
|
PluginTools CreateTools();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
internal class ToolsFactory : IToolsFactory
|
|||
|
|
{
|
|||
|
|
private readonly ILog log;
|
|||
|
|
private readonly Configuration configuration;
|
|||
|
|
private readonly string fileManagerRootFolder;
|
|||
|
|
private readonly ITimeSet timeSet;
|
|||
|
|
|
|||
|
|
public ToolsFactory(ILog log, Configuration configuration, string fileManagerRootFolder, ITimeSet timeSet)
|
|||
|
|
{
|
|||
|
|
this.log = log;
|
|||
|
|
this.configuration = configuration;
|
|||
|
|
this.fileManagerRootFolder = fileManagerRootFolder;
|
|||
|
|
this.timeSet = timeSet;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public PluginTools CreateTools()
|
|||
|
|
{
|
|||
|
|
return new PluginTools(log, configuration, fileManagerRootFolder, timeSet);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|