Table of Contents

Method GetProgressAsync

Namespace
MVVrus.AspNetCore.ActiveSession
Assembly
MVVrus.AspNetCore.ActiveSession.dll

GetProgressAsync(IRunner, CancellationToken)

A universal method of calling a method GetProgress() for both local and remote runners.

public static ValueTask<RunnerBkgProgress> GetProgressAsync(this IRunner Runner, CancellationToken Token = default)

Parameters

Runner IRunner
An instance of a runner for which the method is called.
Token CancellationToken
Can be used for cooperative cancellation of the operation initiated by this method (i.e. cancellation of the result task).

Returns

ValueTask<RunnerBkgProgress>

A ValueTask<TResult> wrapping a result returned by GetProgress() method (possibly from a remote host)