public ConvertFileSystemGraphToDBData(string dBConnectionString, string ormLiteDialectProviderStringDefault, int asyncFileReadBlockSize, bool enableProgress, IConvertFileSystemGraphToDBProgress convertFileSystemGraphToDBProgress, string temporaryDirectoryBase, string nodeFileRelativePath, string edgeFileRelativePath, string[] filePaths) { DBConnectionString = dBConnectionString; OrmLiteDialectProviderStringDefault = ormLiteDialectProviderStringDefault; AsyncFileReadBlockSize = asyncFileReadBlockSize; EnableProgress = enableProgress; ConvertFileSystemGraphToDBProgress = convertFileSystemGraphToDBProgress; TemporaryDirectoryBase = temporaryDirectoryBase; NodeFileRelativePath = nodeFileRelativePath; EdgeFileRelativePath = edgeFileRelativePath; FilePaths = filePaths; }
public async Task <ConvertFileSystemGraphToDBResults> ConvertFileSystemGraphToDBAsync(string[] filePaths, int asyncFileReadBlockSize, bool enableProgress, IConvertFileSystemGraphToDBProgress fileSystemToGraphToDBProgress) { #region File Validation and opening // Validate the source file(s) exist and are readable int numberOfFiles = filePaths.Length; (FileStream fileStream, StreamWriter streamWriter)[] fileStreamStreamWriterPairs = new (FileStream fileStream, StreamWriter streamWriter)[numberOfFiles]