AddPipeListener(String, Object, Action<IPipeMessage>)

Add a PipeListener to an INPUT pipe.
Namespace: Pipes.PlumbingAssembly: Pipes in (Pipes.dll)

Syntax

C#
public bool AddPipeListener(
	string inputPipeName,
	object context,
	Action<IPipeMessage> listener
	)

Parameters

inputPipeNameString
name the INPUT pipe to add a PipeListener to
contextObject
context the calling context or 'this' object
listenerAction<>
listener the function on the context to call

Returns

Boolean

Remarks

NOTE: there can only be one PipeListener per pipe, and the listener function must accept an IPipeMessage as its sole argument.