C# Class Cocktail.CoroutineFns

A collection of IResult extension methods.
Mostra file Open project: IdeaBlade/Punch

Public Methods

Method Description
AsTask ( this source, Caliburn.Micro.CoroutineExecutionContext context = null ) : System.Threading.Tasks.Task

Extension method to convert an IResult to Task

Execute ( this result, Action callback = null ) : void

Executes a result with optional callback upon completion.

ToSequentialResult ( this results ) : IResult

Returns an implementation of IResult that enables sequential execution of multiple results.

Method Details

AsTask() public static method

Extension method to convert an IResult to Task
public static AsTask ( this source, Caliburn.Micro.CoroutineExecutionContext context = null ) : System.Threading.Tasks.Task
source this The IResult to be converted.
context Caliburn.Micro.CoroutineExecutionContext Optional execution context.
return System.Threading.Tasks.Task

Execute() public static method

Executes a result with optional callback upon completion.
public static Execute ( this result, Action callback = null ) : void
result this The result to execute
callback Action Optional callback
return void

ToSequentialResult() public static method

Returns an implementation of IResult that enables sequential execution of multiple results.
public static ToSequentialResult ( this results ) : IResult
results this The results to be executed sequentially
return IResult