Receive(T) Method (Port(T), Handler(T), Predicate(T))

Microsoft Robotics Class Reference

Creates a one time receiver

Namespace: Microsoft.Ccr.Core
Assembly: Microsoft.Ccr.Core (in Microsoft.Ccr.Core.dll) Version: 4.0.261.0 (4.0.261.0)

Syntax

public static Receiver Receive<T>(
    this Port<T> port,
    Handler<T> handler,
    Predicate<T> predicate
)

Parameters

  • predicate
    Type: System. . :: . .Predicate< (Of < ( <'T> ) > ) >
    Predicate that determines if item should be consumed by receiver or ignored

Type Parameters

  • T
    [Missing <typeparam name="T"/> documentation for "M:Microsoft.Ccr.Core.PortExtensions.Receive``1(Microsoft.Ccr.Core.Port{``0},Microsoft.Ccr.Core.Handler{``0},System.Predicate{``0})"]

Return Value

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Port< (Of < ( <'T> ) > ) >. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

PortExtensions Class

Receive Overload

Microsoft.Ccr.Core Namespace