Table of Contents

Class AsyncScreenExtensions

Namespace
The.WPF.Screens
Assembly
Instagile.WPF.dll
public static class AsyncScreenExtensions
Inheritance
AsyncScreenExtensions
Inherited Members

Methods

HandleProgressAsync(IAsyncScreenModel, Func<IProgress<Status>, Task>)

public static Task HandleProgressAsync(this IAsyncScreenModel vm, Func<IProgress<Status>, Task> f)

Parameters

vm IAsyncScreenModel
f Func<IProgress<Status>, Task>

Returns

Task

LoadAsync(IAsyncScreenModel, CancellationToken)

public static Task LoadAsync(this IAsyncScreenModel asyncModel, CancellationToken cancellationToken = default)

Parameters

asyncModel IAsyncScreenModel
cancellationToken CancellationToken

Returns

Task

Remarks

Do not use this internally; it can deadlock if called from within HandleProgressAsync.

ReportProgress(IAsyncScreenModel, Status)

public static void ReportProgress(this IAsyncScreenModel vm, Status p)

Parameters

vm IAsyncScreenModel
p Status