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: (



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


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



Type: Citrix.SDK.AppDNA.ImportOSSourceDetails
The source of the import, with attendant details.
Type: System.String
The full path of the folder that contains any files generated during the import.
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.


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 for more information.

See Also


OSImageService Class
Citrix.SDK.AppDNA Namespace