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
inputPipeName
Stringname the INPUT pipe to add a PipeListener to
context
Objectcontext the calling context or 'this' object
listener
Action<>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.