ReceiveWithIteratorFromPortSet Generic Method
Microsoft Robotics Studio
Creates a single item receiver for a iterator user handler. Use with non-generic PortSet instances only
Namespace: Microsoft.Ccr.Core
Assembly: Ccr.Core (in Ccr.Core.dll)
Version: 1.5.507.0
Syntax
public static Receiver<T> ReceiveWithIteratorFromPortSet<T>(
bool persist,
PortSet portSet,
IteratorHandler<T> handler,
Predicate<T> predicate
)
'Declaration
Public Shared Function ReceiveWithIteratorFromPortSet(Of T) ( _
persist As Boolean, _
portSet As PortSet, _
handler As IteratorHandler(Of T), _
predicate As Predicate(Of T) _
) As Receiver(Of T)
public:
generic<typename T>
static Receiver<T>^ ReceiveWithIteratorFromPortSet (
bool persist,
PortSet^ portSet,
IteratorHandler<T>^ handler,
Predicate<T>^ predicate
)
Parameters
- persist
Boolean
True if receiver can stay registered with the port after the first message
- portSet
PortSet
Port instance to register receiver with
- handler
IteratorHandler<(Of <T>)>
User delegate that executes on message arrival at the port
- predicate
Predicate<(Of <T>)>
User delegate that executes before the handler is allowed to run and filter each message
Return Value
Instance of Receiver arbiter
Type Parameters
- T
Message type
See Also
Arbiter Class
Microsoft.Ccr.Core Namespace