Click or drag to resize
Akka.NETPipeToSupport.PipeTo<T> Method (Task<T>, ICanTell, IActorRef, Func<T, Object>, Func<Exception, Object>)
Pipes the output of a Task directly to the recipient's mailbox once the task completes

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static Task PipeTo<T>(
	this Task<T> taskToPipe,
	ICanTell recipient,
	IActorRef sender = null,
	Func<T, Object> success = null,
	Func<Exception, Object> failure = null
)

Parameters

taskToPipe
Type: System.Threading.Tasks.Task<T>
TBD
recipient
Type: Akka.Actor.ICanTell
TBD
sender (Optional)
Type: Akka.Actor.IActorRef
TBD
success (Optional)
Type: System.Func<T, Object>
TBD
failure (Optional)
Type: System.Func<Exception, Object>
TBD

Type Parameters

T
TBD

Return Value

Type: Task
TBD

Usage Note

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