NanoByte.Common
2.6.1
|
Uses the console (stderr stream) to inform the user about the progress of tasks and ask questions. More...
Public Member Functions | |
override void | Dispose () |
override 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. | |
override bool | Ask (string question, bool? defaultAnswer=null, string? alternateMessage=null) |
Asks the user a Yes/No/Cancel question. | |
override void | Output (string title, string message) |
Displays multi-line text to the user. | |
override void | Error (Exception exception) |
Displays an error message 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. | |
![]() | |
override? object | InitializeLifetimeService () |
Protected Member Functions | |
override void | LogHandler (LogSeverity severity, string message) |
Prints Log messages to the Console based on their LogSeverity and the current Verbosity level. More... | |
![]() | |
TaskHandlerBase () | |
Starts handling log events. More... | |
Properties | |
override? ICredentialProvider | CredentialProvider [get] |
![]() | |
CancellationToken | CancellationToken [get] |
abstract ? ICredentialProvider | CredentialProvider [get] |
Verbosity | Verbosity [get, set] |
![]() | |
CancellationToken | CancellationToken [get] |
Used to signal when the user wishes to cancel the entire current process (and any ITasks it includes). More... | |
ICredentialProvider? | CredentialProvider [get] |
Used to ask the user or a keyring for NetworkCredentials for specific Uris; can be null . More... | |
Verbosity | Verbosity [get, set] |
The detail level of messages displayed to the user. More... | |
Additional Inherited Members | |
![]() | |
readonly CancellationTokenSource | CancellationTokenSource = new() |
Used to signal the CancellationToken. More... | |
Uses the console (stderr stream) to inform the user about the progress of tasks and ask questions.
|
inlineprotectedvirtual |
Prints Log messages to the Console based on their LogSeverity and the current Verbosity level.
severity | The type/severity of the entry. |
message | The message text of the entry. |
Implements NanoByte.Common.Tasks.TaskHandlerBase.