Share via


Receiver Members

Microsoft Robotics Class Reference

The Receiver type exposes the following members.

Constructors

  Name Description
Public method Receiver(IPortReceive, ITask)
Constructs a SingleItemReceiver
Public method Receiver(Boolean, IPortReceive, ITask)
Constructs a SingleItemReceiver

Methods

  Name Description
Public method Cleanup() () () ()
Unregisters this receiver instance from the port
(Overrides ReceiverTask. . :: . .Cleanup() () () ().)
Public method Cleanup(ITask)
Post back any message instances associated with the Task instance
(Overrides ReceiverTask. . :: . .Cleanup(ITask).)
Public method Consume
Consume
(Overrides ReceiverTask. . :: . .Consume(IPortElement).)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method Evaluate
Invoked in the context Port.Post(). The receiver will consult its parent arbiter and if the parent accepts, the receiver will consume the item, and schedule a task with it as an argument
(Overrides ReceiverTask. . :: . .Evaluate(IPortElement, ITask%).)
Public method Execute
Invoked by the scheduler to register the receiver on the ports.
(Inherited from ReceiverTask.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method PartialClone
Shallow clone of receiver state and task state
(Inherited from ReceiverTask.)
Public method ToString
Human readabable description of receiver type, associated handler, nesting hierarchy and state
(Inherited from ReceiverTask.)

Properties

  Name Description
Public property Arbiter
Parent arbiter to consult before consuming a message
(Overrides ReceiverTask. . :: . .Arbiter.)
Public property ArbiterCleanupHandler
Set by a top level arbiter so it can execute logic on task completion
(Inherited from TaskCommon.)
Public property ArbiterContext
Used by parent arbiter to store context
(Inherited from ReceiverTask.)
Public property Item
Returns the arguments contained in the receiver
(Inherited from ReceiverTask.)
Public property LinkedIterator
Iterator that needs to be processed once current task completes
(Inherited from TaskCommon.)
Public property PortElementCount
Number of arguments this receiver is waiting on
(Inherited from ReceiverTask.)
Public property State
Receiver state
(Inherited from ReceiverTask.)
Public property TaskQueue
Dispatcher queue to use for scheduling any tasks
(Inherited from TaskCommon.)
Protected property UserTask
Task instance that contains the user delegate plus arguments.
(Inherited from ReceiverTask.)

See Also

Receiver Class

Microsoft.Ccr.Core Namespace