Table of Contents

Interface IProgressHost

Namespace
The.Web.Controls
Assembly
Instagile.Web.Client.dll

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

message Message
details string

ShowNotification(MessageLevel, string, string?)

void ShowNotification(MessageLevel level, string message, string? details = null)

Parameters

level MessageLevel
message string
details string

WithProgress(Action)

Task WithProgress(Action f)

Parameters

f Action

Returns

Task

WithProgress(Func<IProgress<Status>, CancellationToken, Task>)

Task WithProgress(Func<IProgress<Status>, CancellationToken, Task> f)

Parameters

f Func<IProgress<Status>, CancellationToken, Task>

Returns

Task

WithProgress(Func<IProgress<Status>, Task>)

Task WithProgress(Func<IProgress<Status>, Task> f)

Parameters

f Func<IProgress<Status>, Task>

Returns

Task

WithProgress(Func<Task>)

Task WithProgress(Func<Task> f)

Parameters

f Func<Task>

Returns

Task

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

f Func<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

f Func<IProgress<Status>, Task<T>>

Returns

Task<T>

Type Parameters

T

WithProgress<T>(Func<Task<T>>)

Task<T> WithProgress<T>(Func<Task<T>> f)

Parameters

f Func<Task<T>>

Returns

Task<T>

Type Parameters

T

WithProgress<T>(Func<T>)

Task<T> WithProgress<T>(Func<T> f)

Parameters

f Func<T>

Returns

Task<T>

Type Parameters

T