Performs synchronous parallel multi-threaded download of all files in the configuration.
Namespace:
Aras.IOMEAssembly: IOM (in IOM.dll) Version: 11.0.0.6296
Syntax
C# |
---|
public Hashtable DownloadFiles( string targetDir, int numberOfThreads ) |
Visual Basic (Declaration) |
---|
Public Function DownloadFiles ( _ targetDir As String, _ numberOfThreads As Integer _ ) As Hashtable |
J# |
---|
public Hashtable DownloadFiles( String targetDir, int numberOfThreads ) |
JScript |
---|
public function DownloadFiles( targetDir : String, numberOfThreads : int ) : Hashtable |
Parameters
- targetDir
- Type: System..::.String
Target download directory
- numberOfThreads
- Type: System..::.Int32
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
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.