Exemple #1
0
 internal CFTFileInfo(ICFTInputFileInfo fileInfo)
 {
     FileContent = new byte[fileInfo.FileContent.Length];
     Array.Copy(fileInfo.FileContent, FileContent, fileInfo.FileContent.Length);
     FileName = fileInfo.FileName;
     FullName = string.Empty;
 }
Exemple #2
0
        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);
        }