Skip to main content

DisableProcessing Method

Disable the event processing of the dispatcher.

Definition

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

public Dispatcher.DispatcherProcessingDisabled DisableProcessing()

Return Value

Dispatcher.DispatcherProcessingDisabled

Remarks

This is an advanced method intended to eliminate the chance of unrelated reentrancy. The effect of disabling processing is: 1) CLR locks will not pump messages internally. 2) No one is allowed to push a frame. 3) No message processing is permitted.

See Also

Reference

Dispatcher Class
Avalonia.Threading Namespace