Click or drag to resize

CheckoutManagerDownloadFiles Method

Performs synchronous parallel multi-threaded download of all files in the configuration.

Namespace:  Aras.IOME
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public Hashtable DownloadFiles(
	string targetDir,
	int numberOfThreads
)

Parameters

targetDir
Type: SystemString
Target download directory
numberOfThreads
Type: SystemInt32
The amount of processing threads (from 1 to 10). If parameter value is less than 1 then 1 is assumed. If parameter value is greater than 10 then 10 is assumed.

Return Value

Type: Hashtable
The return collection contain the result of the download for each file: key = FileId, value = DownloadResult
Remarks
The method finds all items of type 'File' in the configuration and downloads their physical files to the specified download directory. The following assumptions are made:
  • If an item of type 'File' has at least one relationship of type 'Located' it's assumed that the item has all relationships of type 'Located' with their corresponding related items of type 'Vault'; i.e. the full configuration of the item of type 'File' is present in the configuration.
  • If an item of type 'File' does not have any relationships of type 'Located' the full configuration of the item (i.e. all its 'Located' with corresponding items of type 'Vault') are obtained from the Innovator server during the file checkout.
See Also