Wrox Programmer Forums
|
BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6
This is the forum to discuss the Wrox book Professional Microsoft Robotics Developer Studio by Kyle Johns, Trevor Taylor; ISBN: 9780470141076
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 6th, 2010, 04:56 AM
Registered User
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Persistent Receiver Allowed in Iterators

Is this only allowed in 2008 R2?

In chapter 2 you state that:
...(The first parameter in the Arbiter.Receive is false.) This is essential
for an iterator to work because the yield return must wait for completion. If you
specify a CCR arbiter that is persistent, its work is never finished because it remains
available to process new messages. In that case, the yield return will never resume
execution of the procedure."
Am I understanding this incorrectly, because you are able to have a persistent Receivers in an Iterator.

Thanks for any clarification,

Ryan
 
Old May 13th, 2010, 08:59 PM
Wrox Author
 
Join Date: Apr 2008
Posts: 60
Thanks: 0
Thanked 5 Times in 5 Posts
Default Persistent Receivers

I think this was answered in the Microsoft Robotics Forums.

You can use a persistent receiver, but yield return will only execute once. In general it makes no sense to have multiple messages arrive for a receiver but only wait for the first message.

Trevor
 
Old May 13th, 2010, 09:19 PM
Registered User
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Persistent Receivers

It was. Thanks for the clarification. I appreciate it.

Ryan





Similar Threads
Thread Thread Starter Forum Replies Last Post
Receiver Usage scott.nortman BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 1 June 25th, 2008 11:02 PM
Persistent URL (P.U.R.L) sloesch VB.NET 1 January 23rd, 2006 11:57 AM
mail not received by the receiver but successfully gauravchhabra9111 J2EE 0 March 22nd, 2005 04:46 AM
Persistent Classes?? MAtkins General .NET 8 December 15th, 2004 04:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.