Skip to main content

DispatcherFrame Class

Namespace: GHIElectronics.TinyCLR.UI.Threading · Assembly: GHIElectronics.TinyCLR.UI

Representation of Dispatcher frame.

public class DispatcherFrame

Constructors

DispatcherFrame()

public DispatcherFrame() : this(true)

Constructs a new instance of the DispatcherFrame class.

DispatcherFrame(bool exitWhenRequested)

public DispatcherFrame(bool exitWhenRequested)

Constructs a new instance of the DispatcherFrame class.

ParameterTypeDescription
exitWhenRequestedboolIndicates whether or not this frame will exit when all frames are requested to exit. Dispatcher frames typically break down into two categories: 1) Long running, general purpose frames, that exit only when told to. These frames should exit when requested. 2) Short running, very specific frames that exit themselves when an important criteria is met. These frames may consider not exiting when requested in favor of waiting for their important criteria to be met. These frames should have a timeout associated with them.

Properties

Continue

public bool Continue { get; set; }

Indicates that this dispatcher frame should exit.