5 references to SafeRead
NuGet.Commands (1)
RestoreCommand\RestoreCommand.cs (1)
1475cacheFile = FileUtility.SafeRead(_request.Project.RestoreMetadata.CacheFilePath, (stream, path) => CacheFileFormat.Read(stream, _logger, path));
NuGet.PackageManagement (1)
Projects\ProjectJsonNuGetProject.cs (1)
313return FileUtility.SafeRead(JsonConfigPath, (stream, filePath) =>
NuGet.Packaging (1)
NupkgMetadata\NupkgMetadataFileFormat.cs (1)
38return FileUtility.SafeRead(filePath, (stream, nupkgMetadataFilePath) => Read(stream, log, nupkgMetadataFilePath));
NuGet.ProjectModel (2)
JsonPackageSpecReader.cs (1)
30return FileUtility.SafeRead(filePath: packageSpecPath, read: (stream, filePath) => GetPackageSpec(stream, name, filePath, null));
LockFile\LockFileUtilities.cs (1)
25lockFile = FileUtility.SafeRead(filePath: lockFilePath, read: (stream, path) => LockFileFormat.Read(stream, logger, path, flags));