Свойство | Type | Description | |
---|---|---|---|
ActivateDownloadedFile | AutoUpdateStatus | ||
CheckForUpdate | void | ||
CheckedDownloadedFileMD5 | AutoUpdateStatus | ||
Decompress | AutoUpdateStatus | ||
Download | AutoUpdateStatus | ||
Download | LicenceKeyResults | ||
DownloadFile | AutoUpdateStatus | ||
FullUrl | |||
GetLastModified | System.DateTime | ||
GetMd5Hash | string | ||
GetMd5Hash | string | ||
GetTempFileName | |||
GetValidKeys | List |
||
ValidateDownloadedFile | AutoUpdateStatus |
Méthode | Description | |
---|---|---|
Update ( IList |
Uses the given license keys to perform a device data update, writing the data to the file system and filling providers from this factory instance with it.
|
|
Update ( string licenseKey, |
Uses the given license key to perform a device data update, writing the data to the file system and filling providers from this factory instance with it.
|
Méthode | Description | |
---|---|---|
ActivateDownloadedFile ( |
Method represents the final stage of the auto update process. The uncompressed file is swapped in place of the existing master file.
|
|
CheckForUpdate ( object state ) : void |
Checks if a new data file is available for download and if it is newer than the current data on disk, if enough time has passed between now and the write time of the current data in memory. See Constants.AutoUpdateWait. This method is designed to be used in a seperate thread from the one performing detection.
|
|
CheckedDownloadedFileMD5 ( |
Verifies that the data has been downloaded correctly by comparing an MD5 hash off the downloaded data with one taken before the data was sent, which is stored in a response header.
|
|
Decompress ( |
Reads a source GZip file and writes the uncompressed data to destination file.
|
|
Download ( IList |
Downloads and updates the premium data file.
|
|
Download ( string licenseKeys ) : LicenceKeyResults |
Uses the given license key to perform a device data update, writing the data to the file system and filling providers from this factory instance with it.
|
|
DownloadFile ( |
Method performs the actual download by setting up and sending request and processing the response.
|
|
FullUrl ( IList |
Constructs the URL needed to download Enhanced device data.
|
|
GetLastModified ( |
Returns the last modified date from the HTTP response.
|
|
GetMd5Hash ( |
Calculates the MD5 hash of the given data array.
|
|
GetMd5Hash ( MD5 md5Hash, Stream stream ) : string |
Calculates the MD5 hash of the given data array.
|
|
GetTempFileName ( |
Method initialises path to the a temporary file used during the auto update process. The original data file does not have to exist, but the directory provided must exist and the path should not be a directory. |
|
GetValidKeys ( IList |
Validate the supplied keys to exclude keys from 3rd party products from being used.
|
|
ValidateDownloadedFile ( |
Method compares the downloaded data file to the existing data file to check if the update is required. This will prevent file switching if the data file was downloaded but is not newer than the existing data file. The following conditions must be met for the data file to be considered newer than the current master data file: 1. Current master data file does not exist. 2. If the published dates are not the same. 3. If the number of properties is not the same. |
public static Update ( IList |
||
licenseKeys | IList |
/// The licence keys to use for the update request. /// |
dataFile | /// Location of the data file to update or create. /// | |
Résultat | AutoUpdateStatus |
public static Update ( string licenseKey, |
||
licenseKey | string | /// The licence key to use for the update request. /// |
dataFile | /// Location of the data file to update or create. /// | |
Résultat | AutoUpdateStatus |