AvaloniaSynchronizationContext Class

SynchronizationContext to be used on main thread

Definition

Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public class AvaloniaSynchronizationContext : SynchronizationContext
Inheritance
Object    SynchronizationContext    AvaloniaSynchronizationContext

Properties

AutoInstall Controls if SynchronizationContext should be installed in InstallIfNeeded. Used by Designer.

Methods

CreateCopyWhen overridden in a derived class, creates a copy of the synchronization context.
(Inherited from SynchronizationContext)
Ensure(DispatcherPriority) 
Ensure(Dispatcher, DispatcherPriority) 
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
InstallIfNeeded Installs synchronization context in current thread
IsWaitNotificationRequiredDetermines if wait notification is required.
(Inherited from SynchronizationContext)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OperationCompletedWhen overridden in a derived class, responds to the notification that an operation has completed.
(Inherited from SynchronizationContext)
OperationStartedWhen overridden in a derived class, responds to the notification that an operation has started.
(Inherited from SynchronizationContext)
Post(SendOrPostCallback, Object)When overridden in a derived class, dispatches an asynchronous message to a synchronization context.
(Overrides SynchronizationContextPost(SendOrPostCallback, Object))
Send(SendOrPostCallback, Object)When overridden in a derived class, dispatches a synchronous message to a synchronization context.
(Overrides SynchronizationContextSend(SendOrPostCallback, Object))
SetWaitNotificationRequiredSets notification that wait notification is required and prepares the callback method so it can be called more reliably when a wait occurs.
(Inherited from SynchronizationContext)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Wait(IntPtr, Boolean, Int32)
(Overrides SynchronizationContextWait(IntPtr, Boolean, Int32))

See Also