Skip to main content

DispatcherFrame(Boolean) Constructor

Constructs a new instance of the DispatcherFrame class.

Definition

Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public DispatcherFrame(
bool exitWhenRequested
)

Parameters

  Boolean
Indicates 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.

See Also

Reference

DispatcherFrame Class
DispatcherFrame Overload
Avalonia.Threading Namespace