Skip to content

ApplicationImportConfiguration.SynchronizationContext Property

A SynchronizationContext used to control the thread on which notifications are raised.

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 SynchronizationContext SynchronizationContext { get; set; }

VB

Public Property SynchronizationContext As SynchronizationContext
    Get
    Set

Property Value

Type: SynchronizationContext

Remarks

Importing utilizes multiple background worker threads. The Importer object and its ProcessingState objects raise 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. By default SynchronizationContext.Current at the time this class is constructed will be used. Note that SynchronizationContext.Current may still be null, in which case there is no guarantee over which thread the event handlers will be run on. If this value is not null, then the caller must ensure that the specified synchronization context is processing events in order to receive events. See http://msdn.microsoft.com/en-us/library/system.threading.synchronizationcontext.aspx for more information.

See Also

Reference

ApplicationImportConfiguration Class
Citrix.SDK.AppDNA Namespace

Was this article helpful?