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