Class Dispatcher
Provides properties, methods, and events for managing events across application threads.
Implements
IDisposable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: tt_net_sdk
Assembly: tt-net-api.dll
Syntax
public abstract class Dispatcher : IDisposable
Properties
Current
Declaration
public static Dispatcher Current { get; }
Property Value
Type | Description |
---|---|
Dispatcher |
IsAttached
Declaration
public static bool IsAttached { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsDisposed
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
AttachUIDispatcher()
Attaches the UIDispatcher
Declaration
public static UIDispatcher AttachUIDispatcher()
Returns
Type | Description |
---|---|
UIDispatcher |
Remarks
The UIDispatcher is not included in the NET5 version of the SDK since NET5 is supports multi platforms and the SDK UI dispatcher is Windows specific.The application developer can write their own dispatcher to push messages to the ui thread that works for the OS on which they plan to run the application.
AttachWorkerDispatcher()
Declaration
public static WorkerDispatcher AttachWorkerDispatcher()
Returns
Type | Description |
---|---|
WorkerDispatcher |
CheckAccess()
Declaration
public bool CheckAccess()
Returns
Type | Description |
---|---|
Boolean |
DispatchAction(Action)
Declaration
public abstract void DispatchAction(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action |
Dispose()
Declaration
public void Dispose()
Invoke(Action)
Declaration
public abstract void Invoke(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action |
InvokeRequired()
Declaration
public virtual bool InvokeRequired()
Returns
Type | Description |
---|---|
Boolean |
Shutdown()
Declaration
public abstract void Shutdown()
VerifyAccess()
Declaration
public void VerifyAccess()
Implements
System.IDisposable