internal CFTFileInfo(ICFTInputFileInfo fileInfo) { FileContent = new byte[fileInfo.FileContent.Length]; Array.Copy(fileInfo.FileContent, FileContent, fileInfo.FileContent.Length); FileName = fileInfo.FileName; FullName = string.Empty; }
public CFTFileContext(IServiceProvider applicationServices, ICFTInputFileInfo inputFile) { if (applicationServices == null) { throw new ArgumentNullException(nameof(applicationServices)); } ContextServices = applicationServices.CreateScope().ServiceProvider; InputFile = inputFile ?? throw new ArgumentNullException(nameof(inputFile)); OutputFile = new CFTFileInfo(inputFile); }