Common base class for ITaskHandler implementations.
More...
|
virtual void | Dispose () |
|
virtual void | RunTask (ITask task) |
| Runs an ITask and tracks its progress. Returns once the task has been completed. The task may be executed on a different thread.
|
|
abstract bool | Ask (string question, bool? defaultAnswer=null, string? alternateMessage=null) |
| Asks the user a Yes/No/Cancel question.
|
|
abstract void | Output (string title, string message) |
| Displays multi-line text to the user.
|
|
virtual void | Output< T > (string title, IEnumerable< T > data) |
| Displays tabular data to the user.
|
|
virtual void | Output< T > (string title, NamedCollection< T > data) |
| Displays tree-like data to the user.
|
|
abstract void | Error (Exception exception) |
| Displays an error message to the user.
|
|
override? object | InitializeLifetimeService () |
|
Common base class for ITaskHandler implementations.
◆ TaskHandlerBase()
NanoByte.Common.Tasks.TaskHandlerBase.TaskHandlerBase |
( |
| ) |
|
|
inlineprotected |
Starts handling log events.
◆ LogHandler()
abstract void NanoByte.Common.Tasks.TaskHandlerBase.LogHandler |
( |
LogSeverity |
severity, |
|
|
string |
message |
|
) |
| |
|
protectedpure virtual |
◆ CancellationTokenSource
The documentation for this class was generated from the following file:
- Common/Tasks/TaskHandlerBase.cs