Start asynchronous parallel multi-threaded download of all files in the configuration.

Namespace:  Aras.IOME
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public void DownloadFilesAsync(
	string targetDir,
	int numberOfThreads
)
Visual Basic (Declaration)
Public Sub DownloadFilesAsync ( _
	targetDir As String, _
	numberOfThreads As Integer _
)
J#
public void DownloadFilesAsync(
	String targetDir,
	int numberOfThreads
)
JScript
public function DownloadFilesAsync(
	targetDir : String, 
	numberOfThreads : int
)

Parameters

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

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