public void Execute(IStepContext context) { context.WorkingDirectory.Create(); IChannel channel = ChannelFactory.Create(_settings, context.WorkingDirectory); var processedFiles = channel.Copy(); context.Attach(processedFiles); context.Attach(_settings); }
public void Execute(IStepContext context) { var compressor = new Processors.Compression.ZipFactory(_settings).Get(); foreach (var file in context.Parent.Files) { var uncompressedFiles = compressor.Decompress(file, context.WorkingDirectory); context.Attach(uncompressedFiles); } }
public void Execute(IStepContext context) { DirectoryInfo flushDirectory = context.WorkingDirectory.CreateSubdirectory("Flush"); context.Attach(context.PreviousFiles); //TODO: fix To channel + channel factory to be able to accept IEnumerable<FileInfo> instead of DirectoryInfo foreach (var file in context.PreviousFiles) { file.CopyTo(Path.Combine(flushDirectory.FullName, file.Name)); } IChannel channel = ChannelFactory.Create(_settings, flushDirectory); channel.Copy(); }