Click or drag to resize

PackageInfoGetPresentDownloadedPackage(Stream, String, FileStream) 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.AutoUpdates
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static PackageInfo? GetPresentDownloadedPackage(
	Stream fs,
	string storagePath,
	out FileStream?? packageFile
)

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.
packageFile  FileStream
On successfull return, the opened FileStream of the package file is provided here. You are responsible for closing the stream!

Return Value

PackageInfo
The info for the already present package in the download directory. If anything is invalid, the return value is null.
See Also