public ProcessWorkerFactory(IMediaConfig config, IFileInfoParserFactory parserFactory, IProcessFactory processFactory, IFileSystemService fileSystemService) { this.Config = config ?? throw new ArgumentNullException(nameof(config)); this.ParserFactory = parserFactory ?? throw new ArgumentNullException(nameof(parserFactory)); this.ProcessFactory = processFactory ?? throw new ArgumentNullException(nameof(processFactory)); this.FileSystemService = fileSystemService ?? throw new ArgumentNullException(nameof(fileSystemService)); }
public ProcessWorkerEncoder(IMediaConfig config, IProcessFactory processFactory, IFileSystemService fileSystemService, IFileInfoParserFactory parserFactory, ProcessOptionsEncoder options) : base(config, processFactory, options ?? new ProcessOptionsEncoder()) { _fileSystem = fileSystemService ?? throw new ArgumentNullException(nameof(fileSystemService)); _parserFactory = parserFactory ?? throw new ArgumentNullException(nameof(parserFactory)); OutputType = ProcessOutput.Error; }
public ProcessWorker(IMediaConfig config, IProcessFactory processFactory, IFileSystemService fileSystemService, ProcessOptions options = null) { this.Config = config ?? throw new ArgumentNullException(nameof(config)); this.factory = processFactory ?? throw new ArgumentNullException(nameof(processFactory)); this.fileSystem = fileSystemService ?? throw new ArgumentNullException(nameof(fileSystem)); this.Options = options ?? new ProcessOptions(); }
public ProcessWorkerFactory(IMediaConfig config, IUserInterfaceManager?uiManager, IFileInfoParserFactory parserFactory, IProcessFactory processFactory, IFileSystemService fileSystemService) { Config = config ?? throw new ArgumentNullException(nameof(config)); UiManager = uiManager; _parserFactory = parserFactory ?? throw new ArgumentNullException(nameof(parserFactory)); _processFactory = processFactory ?? throw new ArgumentNullException(nameof(processFactory)); _fileSystemService = fileSystemService ?? throw new ArgumentNullException(nameof(fileSystemService)); }
//public ProcessWorker() : this(new MediaConfig(), new ProcessFactory(), null) { } public ProcessWorker(IMediaConfig config, IProcessFactory processFactory, ProcessOptions?options = null) { Config = config ?? throw new ArgumentNullException(nameof(config)); _factory = processFactory ?? throw new ArgumentNullException(nameof(processFactory)); Options = options ?? new ProcessOptions(); }
public ProcessWorkerFactory(IMediaConfig config, IUserInterfaceManager?uiManager) : this(config, uiManager, new FileInfoParserFactory(), new ProcessFactory(), new FileSystemService()) { }
public ProcessWorkerFactory(IMediaConfig config) : this(config, new FileInfoParserFactory(), new ProcessFactory(), new FileSystemService()) { }