public ArgumentsBuilder(IWorkedFoldersProvider workedFoldersProvider, Config config, IInventoryManager inventoryManager) { _inventoryManager = inventoryManager; _workedFolders = workedFoldersProvider.Get(); _options = config.HashCat.Options; _force = config.HashCat.NeedForce ? "--force --self-test-disable " : string.Empty; }
public JobHandlerBuilder(IKrakerApi krakerApi, IWorkedFoldersProvider workedFoldersProvider, ITempFileManager tempFileManager, IAgentIdManager agentIdManager, ISpeedCalculator speedCalculator, ILogger logger, IHashCatCommandExecutorBuilder executorBuilder) { _krakerApi = krakerApi; _workedFolders = workedFoldersProvider.Get(); _tempFileManager = tempFileManager; _agentIdManager = agentIdManager; _speedCalculator = speedCalculator; _logger = logger; _executorBuilder = executorBuilder; }
public InventoryManager( AppFolder appFolder, ILogger logger, IWorkedFoldersProvider workedFoldersProvider, IFileDescriptionBuilder descriptionBuilder, IKrakerApi krakerApi, IAgentIdManager agentIdManager) { _logger = logger; _descriptionBuilder = descriptionBuilder; _krakerApi = krakerApi; _agentIdManager = agentIdManager; _workedFolders = workedFoldersProvider.Get(); _inventoryFilePath = Path.Combine(appFolder.Value, ArtefactsFolder, InventoryFile); _fileDescriptions = new Dictionary <string, FileDescription>(); _currentInventory = new Inventory(_fileDescriptions.Values); }