// This ctor is internal rather than private for unit test purposes. internal CodeAnalysisResultManager( IFileSystem fileSystem, PromptForResolvedPathDelegate promptForResolvedPathDelegate = null) { this._fileSystem = fileSystem; this._promptForResolvedPathDelegate = promptForResolvedPathDelegate ?? this.PromptForResolvedPath; this._allowedDownloadHosts = SdkUIUtilities.GetStoredObject <List <string> >(AllowedDownloadHostsFileName) ?? new List <string>(); // Get temporary path for embedded files. this.temporaryFilePath = Path.GetTempPath(); this.temporaryFilePath = Path.Combine(this.temporaryFilePath, TemporaryFileDirectoryName); }
// This ctor is internal rather than private for unit test purposes. internal CodeAnalysisResultManager( IFileSystem fileSystem, PromptForResolvedPathDelegate promptForResolvedPathDelegate = null) { _fileSystem = fileSystem; _promptForResolvedPathDelegate = promptForResolvedPathDelegate ?? PromptForResolvedPath; this.SarifErrors = new List <SarifErrorListItem>(); _remappedUriBasePaths = new Dictionary <string, Uri>(); _remappedPathPrefixes = new List <Tuple <string, string> >(); _fileToNewLineIndexMap = new Dictionary <string, NewLineIndex>(); _allowedDownloadHosts = SdkUIUtilities.GetStoredObject <List <string> >(AllowedDownloadHostsFileName) ?? new List <string>(); // Get temporary path for embedded files. TemporaryFilePath = Path.GetTempPath(); TemporaryFilePath = Path.Combine(TemporaryFilePath, TemporaryFileDirectoryName); }