Download full document:

OSImageService.ImportInBackground Method

Imports an OSImage that was generated by the Snapshot Manager tool that comes with AppDNA.

Namespace: Citrix.SDK.AppDNA
Assembly: Citrix.SDK.AppDNA (in Citrix.SDK.AppDNA.dll) Version: 7.11.0.0 (7.11.0.0)

Syntax

C

public OSImport ImportInBackground(
    ImportOSSourceDetails importDetails,
    string outputFolder,
    SynchronizationContext synchronizationContext
)

VB

Public Function ImportInBackground ( 
    importDetails As ImportOSSourceDetails,
    outputFolder As String,
    synchronizationContext As SynchronizationContext
) As OSImport

Parameters

 

importDetails
Type: Citrix.SDK.AppDNA.ImportOSSourceDetails
The source of the import, with attendant details.
outputFolder
Type: System.String
The full path of the folder that contains any files generated during the import.
synchronizationContext
Type: System.Threading.SynchronizationContext
A SynchronizationContext used to control the thread on which notifications are raised. See the remarks for more details.

Return Value

Type: OSImport
The OSImport object that allows monitoring of the current state of the import.

Remarks

Importing utilizes multiple background worker threads. The Import object raises notification events which the user can subscribe to. In order to allow the user to control which thread the user event handling code should be called on, this function accepts a SynchronizationContext. If null is specified, then Current will be used. Note that Current may still be null, in which case there is no guarantee over which thread the event handlers will be run on. If a non-null value is passed or Current is not null, then the caller must ensure that the specified synchronization context is processing events in order to have the event handlers called. See http://msdn.microsoft.com/en-us/library/system.threading.synchronizationcontext.aspx for more information.

See Also

Reference

OSImageService Class
Citrix.SDK.AppDNA Namespace