Table of Contents

Method GetExceptionAsync

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

GetExceptionAsync(IRunner, CancellationToken)

A universal method of obtaining a value of a property Exception for both local and remote runners.

public static ValueTask<Exception?> GetExceptionAsync(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<Exception>

A ValueTask<TResult> wrapping a value of the Exception property (possibly from a remote host)