Class GuiSynchronizationContext
Inherited Members
Namespace: Ritchie.Toolbox
Assembly: Ritchie.Toolbox.dll
Syntax
public class GuiSynchronizationContext : SynchronizationContext
Constructors
GuiSynchronizationContext()
Declaration
public GuiSynchronizationContext()
Methods
Clear()
Declaration
public void Clear()
Post(SendOrPostCallback, object?)
When overridden in a derived class, dispatches an asynchronous message to a synchronization context.
Declaration
public override void Post(SendOrPostCallback codeToRun, object? state)
Parameters
| Type | Name | Description |
|---|---|---|
| SendOrPostCallback | codeToRun | |
| object | state | The object passed to the delegate. |
Overrides
Send(SendOrPostCallback, object?)
When overridden in a derived class, dispatches a synchronous message to a synchronization context.
Declaration
public override void Send(SendOrPostCallback codeToRun, object? state)
Parameters
| Type | Name | Description |
|---|---|---|
| SendOrPostCallback | codeToRun | |
| object | state | The object passed to the delegate. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The method was called in a Windows Store app. The implementation of SynchronizationContext for Windows Store apps does not support the Send(SendOrPostCallback, object) method. |
Update()
Declaration
public void Update()