Interface IProgressHost
Runs operations under a progress display and presents notifications to the user.
public interface IProgressHost
Methods
ShowNotification(Message, string?)
Display a notification described by a Message, with optional detail text.
void ShowNotification(Message message, string? details = null)
Parameters
ShowNotification(MessageLevel, string, string?)
void ShowNotification(MessageLevel level, string message, string? details = null)
Parameters
levelMessageLevelmessagestringdetailsstring
WithProgress(Action)
Task WithProgress(Action f)
Parameters
fAction
Returns
WithProgress(Func<IProgress<Status>, CancellationToken, Task>)
Task WithProgress(Func<IProgress<Status>, CancellationToken, Task> f)
Parameters
fFunc<IProgress<Status>, CancellationToken, Task>
Returns
WithProgress(Func<IProgress<Status>, Task>)
Task WithProgress(Func<IProgress<Status>, Task> f)
Parameters
Returns
WithProgress(Func<Task>)
Task WithProgress(Func<Task> f)
Parameters
Returns
WithProgress<T>(Func<IProgress<Status>, CancellationToken, Task<T>>)
Runs an operation under a progress display, passing it a sink for status updates and a token which is cancelled if the host abandons the operation.
Task<T> WithProgress<T>(Func<IProgress<Status>, CancellationToken, Task<T>> f)
Parameters
fFunc<IProgress<Status>, CancellationToken, Task<T>>
Returns
- Task<T>
Type Parameters
T
WithProgress<T>(Func<IProgress<Status>, Task<T>>)
Task<T> WithProgress<T>(Func<IProgress<Status>, Task<T>> f)
Parameters
Returns
- Task<T>
Type Parameters
T
WithProgress<T>(Func<Task<T>>)
Task<T> WithProgress<T>(Func<Task<T>> f)
Parameters
Returns
- Task<T>
Type Parameters
T
WithProgress<T>(Func<T>)
Task<T> WithProgress<T>(Func<T> f)
Parameters
fFunc<T>
Returns
- Task<T>
Type Parameters
T