TaskUtils OnOk T1  Method (Task T1 , Action T1 , TaskContinuationOptions)NFX Class Library

[This is preliminary documentation and is subject to change.]

Chains task 'first' with 'next' passing result of 'first' to 'next' if first is completed, not cancelled and not faulted. Returns task that completes when 'next' completes

Namespace: NFX
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static Task OnOk<T1>(
	this Task<T1> first,
	Action<T1> next,
	TaskContinuationOptions options = TaskContinuationOptions.ExecuteSynchronously
)

Parameters

first
Type: OnlineSystem.Threading.Tasks Task T1 
next
Type: OnlineSystem Action T1 
options (Optional)
Type: OnlineSystem.Threading.Tasks TaskContinuationOptions
Type Parameters

T1

Return Value

Type: OnlineTask

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineTask T1 . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also