ForegroundThreadWithDispatcher Class |
Namespace: TomsToolbox.Wpf
The ForegroundThreadWithDispatcher type exposes the following members.
Name | Description | |
---|---|---|
ForegroundThreadWithDispatcher(String, ApartmentState) |
Initializes a new instance of the ForegroundThreadWithDispatcher class with normal thread priority.
| |
ForegroundThreadWithDispatcher(String, ApartmentState, ThreadPriority) |
Initializes a new instance of the ForegroundThreadWithDispatcher class.
|
Name | Description | |
---|---|---|
Dispatcher |
Gets the dispatcher of the thread.
(Inherited from ThreadWithDispatcher.) | |
ShutdownPriority |
Gets or sets the shutdown priority passed to BeginInvokeShutdown(DispatcherPriority) when the object is disposed. The default is Normal | |
TaskScheduler |
Gets the task scheduler associated with the Dispatcher (Inherited from ThreadWithDispatcher.) |
Name | Description | |
---|---|---|
Abort | Obsolete.
Aborts this instance.
(Inherited from ThreadWithDispatcher.) | |
BeginInvoke(Action) |
Invokes the specified method asynchronously in the dispatcher thread.
(Inherited from ThreadWithDispatcher.) | |
BeginInvoke(DispatcherPriority, Action) |
Invokes the specified method asynchronously in the dispatcher thread.
(Inherited from ThreadWithDispatcher.) | |
BeginShutdown |
Initiates shutdown of the Dispatcher asynchronously.
(Inherited from ThreadWithDispatcher.) | |
CheckAccess |
Determines whether the calling thread is the thread associated with this Dispatcher.
(Inherited from ThreadWithDispatcher.) | |
Dispose |
Shut down the dispatcher and wait for the thread to terminate.
| |
Finalize |
Finalizes an instance of the ForegroundThreadWithDispatcher class.
(Overrides ObjectFinalize.) | |
Invoke(Action) |
Invokes the specified method in the dispatcher thread.
(Inherited from ThreadWithDispatcher.) | |
InvokeT(FuncT) |
Invokes the specified method in the dispatcher thread.
(Inherited from ThreadWithDispatcher.) | |
Join |
Blocks the calling thread until the Dispatcher terminates.
(Inherited from ThreadWithDispatcher.) | |
Join(TimeSpan) |
Blocks the calling thread until the Dispatcher terminates.
(Inherited from ThreadWithDispatcher.) | |
VerifyAccess |
Determines whether the calling thread has access to this Dispatcher.
(Inherited from ThreadWithDispatcher.) |
Name | Description | |
---|---|---|
Terminated |
Occurs when the dispatcher is terminated.
(Inherited from ThreadWithDispatcher.) |
Name | Description | |
---|---|---|
ReportNotDisposedObject |
Handle reporting of a not disposed object.
Using this pattern is a good practice to avoid code where disposable objects get never disposed.
Calling this method will raise the NotDisposedObject event if any event handler is attached;
otherwise it will throw an InvalidOperationException if a debugger is attached.
If the application does not run in a debugger and no event handler is attached, calling this method does nothing.
(Defined by Disposable.) | |
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.) |