NanoByte.Common
2.6.1
|
Executes tasks silently and suppresses any questions. Automatically uses ILogger<TCategoryName> and ICredentialProvider if available via
. More...
Public Member Functions | |
ServiceTaskHandler (IServiceProvider provider) | |
override void | Dispose () |
![]() | |
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. | |
bool | Ask (string question, bool? defaultAnswer=null, string? alternateMessage=null) |
Always returns defaultAnswer . More... | |
void | Output (string title, string message) |
Displays multi-line text to the user. | |
void | Output< T > (string title, IEnumerable< T > data) |
Displays tabular data to the user. | |
void | Output< T > (string title, NamedCollection< T > data) |
Displays tree-like data to the user. | |
void | Error (Exception exception) |
Displays an error message to the user. | |
Properties | |
override CancellationToken | CancellationToken [get] |
override? ICredentialProvider | CredentialProvider [get] |
![]() | |
virtual CancellationToken | CancellationToken [get] |
virtual ? ICredentialProvider | CredentialProvider [get] |
Verbosity | Verbosity [get, set] |
Always returns Tasks.Verbosity.Batch. More... | |
![]() | |
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... | |
Executes tasks silently and suppresses any questions. Automatically uses ILogger<TCategoryName> and ICredentialProvider if available via
.