/// <inheritdoc /> /// <summary> /// Initializes a new instance of the <see cref="T:FileSavePipelineStep.FileSavePipelineStep" /> class. /// </summary> /// <param name="jobConfig"> /// The queue context. /// </param> /// <param name="logger"> /// The logger. /// </param> /// <param name="queueManager"> /// The queue manager. /// </param> /// <param name="progressMonitor"> /// The progress monitor. /// </param> /// <param name="fileWriter"></param> /// <param name="cancellationToken"></param> public FileSavePipelineStep( IJobConfig jobConfig, ILogger logger, IQueueManager queueManager, IProgressMonitor progressMonitor, ITemporaryFileWriter fileWriter, CancellationToken cancellationToken) : base(jobConfig, logger, queueManager, progressMonitor, cancellationToken) { this.fileWriter = fileWriter ?? throw new ArgumentNullException(nameof(fileWriter)); }
/// <inheritdoc /> /// <summary> /// Initializes a new instance of the <see cref="T:SaveSchemaPipelineStep.SaveSchemaPipelineStep" /> class. /// </summary> /// <param name="jobConfig"> /// The queue context. /// </param> /// <param name="logger"> /// The logger. /// </param> /// <param name="queueManager"> /// The queue Manager. /// </param> /// <param name="progressMonitor"></param> /// <param name="fileWriter"></param> /// <param name="entityJsonWriter"></param> /// <param name="cancellationToken"></param> public SaveSchemaPipelineStep( IJobConfig jobConfig, ILogger logger, IQueueManager queueManager, IProgressMonitor progressMonitor, ITemporaryFileWriter fileWriter, IEntityJsonWriter entityJsonWriter, CancellationToken cancellationToken) : base(jobConfig, logger, queueManager, progressMonitor, cancellationToken) { this.fileWriter = fileWriter ?? throw new ArgumentNullException(nameof(fileWriter)); this.entityJsonWriter = entityJsonWriter ?? throw new ArgumentNullException(nameof(entityJsonWriter)); this.folder = Path.Combine(this.Config.LocalSaveFolder, $"{this.UniqueId}-{LoggerName}"); this.fileWriter.CreateDirectory(this.folder); }