PackageInfoGetPresentDownloadedPackage(Stream, String) Method |
If there already a package in the download directory, this function gets the present downloaded package. If anything is invalid (wrong format of the version file,
wrong hash sum), the return value is Null.
Namespace: Altaxo.Serialization.AutoUpdatesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static PackageInfo? GetPresentDownloadedPackage(
Stream fs,
string storagePath
)
Parameters
- fs Stream
- Stream to read the version info from. This must be the opened stream of the VersionInfo.txt file in the download directory.
- storagePath String
- Path to the directory that stores the downloaded package.
Return Value
PackageInfoThe info for the already present package in the download directory. If anything is invalid, the return value is null.
See Also