Class RunnerExtensions
- Namespace
- MVVrus.AspNetCore.ActiveSession
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
Contains extension methods for IRunner<TResult> interface
public static class RunnerExtensions
- Inheritance
-
RunnerExtensions
- Inherited Members
Remarks
This class contains extension methods which allow transparent use of asynchronous methods peculiar to IRunnerProxy<TResult> interface, having only a reference to an IRunner interface, irrespective to whether IRunnerProxy interface also implemented by an object implementing this IRunner interface or not.
Methods
- AbortAsync(IRunner, string?, CancellationToken)
A universal method of calling a method Abort(string?)for both local and remote runners.
- GetAvailableAsync<TResult>(IRunner<TResult>, int, int, string?, CancellationToken)
A universal method of calling a method GetAvailable(int, int, string?)for both local and remote runners.
- GetExceptionAsync(IRunner, CancellationToken)
A universal method of obtaining a value of a property Exceptionfor both local and remote runners.
- GetIsBackgroundExecutionCompletedAsync(IRunner, CancellationToken)
A universal method of obtaining a value of a property IsBackgroundExecutionCompletedfor both local and remote runners.
- GetPositionAsync(IRunner, CancellationToken)
A universal method of obtaining a value of a property Positionfor both local and remote runners.
- GetProgressAsync(IRunner, CancellationToken)
A universal method of calling a method GetProgress()for both local and remote runners.
- GetRequired<TResult>(IRunner<TResult>, int, int, string?)
A synchronous counterpart of IRunner<TResult>.GetRequiredAsync method.
- GetStatusAsync(IRunner, CancellationToken)
A universal method of obtaining a value of a property Statusfor both local and remote runners.
- IsLocal(IRunner)
Indicates that the runner execute itself on the same host as a caller.